1 year ago

#373589

test-img

Ludwig Guggenberger

debug grails in vscode

I know, that this question is well discussed in this and many other places but none of the solutions works for me. To keep it short, I won't explain all the things I found as possible solution I found in the past days, so I ask for a walkthrough that works.

I want to be able to debug a grails-app within Visual Studio Code.

  1. Create a launch.json like this:

{ "version": "0.2.0", "configurations": [ { "type": "pwa-chrome", "request": "launch", "name": "Launch Chrome against localhost", "url": "http://192.168.1.54:8080/test1/", "webRoot": "${workspaceFolder}", "sourceMaps": true } ] }

  1. run the app (grails run-app)
  2. set a breakpoint and start the debugger within vscode.

The browser will start (in this case chrome) but breakpoints won't work at all. They are marked as 'unbound breakpoints'. I use VSCode 1.66.0 Node.js 16.13.0 on Windows 10. If any other details are nedded to answer my questeion, please let me know!

debugging

visual-studio-code

grails

breakpoints

0 Answers

Your Answer

Accepted video resources