cli icon indicating copy to clipboard operation
cli copied to clipboard

Debugging a Starport chain

Open fadeev opened this issue 4 years ago • 4 comments

It seems that, in order to debug a go application, on have to compile the application with the flag -gcflags "all=-N -l" , but I can't find in starport documentation how can I instruct it to compile like that.

fadeev avatar May 16 '21 02:05 fadeev

Any answers ?

miladz68 avatar Apr 13 '22 12:04 miladz68

We are planning to add support for configuring the build phase, but it will take a while to introduce due to other priorities.

ilgooz avatar Apr 13 '22 13:04 ilgooz

It would be nice to provide a vscode debugging feature

diligentaf avatar May 10 '22 07:05 diligentaf

Piling on here, I've spent half a day trying to figure out how to debug any of the ignite cli tutorials (currently my DeFi loan tutorial won't flip to the approved state, but throws no errors). I did find https://www.youtube.com/watch?v=qnMQDID5HME but this seems to be a pretty dated version of the scaffolding/starport. Any other quick tips on how to do some debugging here or an ETA on when some of the configuration mentioned above may be available? (I'm also using vscode and would love a seamless debugging feature)

irclausen avatar Jun 23 '22 22:06 irclausen

Debugger support incoming: #2992

aljo242 avatar Oct 27 '22 20:10 aljo242