Thanks Chris. I was able to get some online help from Greg and here are some takeaways for a using mvn/IntelliJ combination to debug compiler using an external test app:
1. Make sure you have the entire royale-compiler project imported as a mvn project 2. Build the whole thing from within IDE 3. Import test application into IDE as a mvn app (this was the part that I was wondering about) 4. Put a breakpoint in the compiler source code 5. Debug test app from within IDE Hope I got this list right, and hope it helps others interested in fixing the compiler. Yishay From: Christofer Dutz<mailto:[email protected]> Sent: Wednesday, November 11, 2020 4:54 PM To: [email protected]<mailto:[email protected]> Subject: Re: Debugging compiler-jx With IntelliJ Hi Piotr, well in this case all you need to do is to set a breakpoint where you want to start debugging and then you do a Maven compile (by selecting the compile goal in the maven menu. But instead of selecting "Run" you select "Debug" ... that should be all that's needed. Chris Am 11.11.20, 14:09 schrieb "Piotr Zarzycki" <[email protected]>: Hi Chris, Could you describe whole process ? I heard it straightforward, but nothing more above that. We are using Maven. Thanks, Piotr śr., 11 lis 2020 o 13:36 Christofer Dutz <[email protected]> napisał(a): > Hi Yishay, > > well debugging the compiler-jx code from a unit- or integrationtest shouls > be straight forward. > When using maven it should also be just setting a breakpoint and starting > the maven build using the debug icon. > When using Ant however I think you need to provide some additional > arguments to make the VM pause and wait for a connection from a debugger. > For this use the "Remote Debugging" run configuration in Intellij. When > editing the run configuration, it also displays what you have to add to the > commandline. > > Hope that helps, > Chris > > Am 11.11.20, 12:34 schrieb "Yishay Weiss" <[email protected]>: > > Can anyone share his/her experience in doing that? > > Thanks, > Yishay > > > > -- Piotr Zarzycki
