I am trying to find a way to debug the go compiler so I can investigate how the AST is transformed into SSA and then into machine code.
I have the source loaded into GoLand but I cannot build and debug from inside the IDE. I have attempted to run the compiler through the command line and attach the IDE to the process, but no debug information is found and I cannot stop at any breakpoints.
I have built the compiler from source using the ./make.bash script and I can’t see any options to build with debug information. Does anyone have any idea how I could make this work? I have also posted this question here:
Thanks!