在 vscode 中调试 grails
我知道,这个问题在这个地方和许多其他地方都得到了很好的讨论,但没有一个解决方案对我有用。简而言之,我不会解释我在过去几天找到的所有可能的解决方案,因此我要求提供一个可行的演练。
我希望能够在 Visual Studio Code 中调试 grails-app。
- 像这样创建一个 launch.json:
{ "version": "0.2.0", "configurations": [ { "type": "pwa-chrome", "request": "launch", "name": "针对本地主机启动 Chrome", "url": "http://192.168.1.54:8080/test1/", "webRoot": "${workspaceFolder}", "sourceMaps": true } ] }
- 运行应用程序 (grails run-app)
- 设置断点并在 vscode 中启动调试器。
浏览器将启动(在本例中为 chrome),但断点根本不起作用。它们被标记为“未绑定断点”。我在 Windows 10 上使用 VSCode 1.66.0 Node.js 16.13.0。如果需要任何其他详细信息来回答我的问题,请告诉我!
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.
- 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 } ] }
- run the app (grails run-app)
- 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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论