-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] How to debug Theia plugin folder #3251
Comments
i tried the "hosted plugin: debug instance" command, which asks me for the path of the plugin (in my local environment it is theia/plugins/the-plugin-to-debug). And, the command populates a dialog that helps me to open another instance of theia. however, my break points are not hit either. I tried dropping break point in both theia instances (i.e., the one running on port 3000, and the one on 3030), and neither worked. Could you @benoitf please point us to the wiki that explains how debugging
Thank you ! |
@elaihau you're using master branch and examples/browser or a different config ? |
yes i am on the master branch, using examples/browser |
@elaihau I made this quick video https://www.youtube.com/watch?v=Kjwovxq38Ms&feature=youtu.be was trying against a Theia plug-in. |
Thank you @benoitf ! |
You can create a node debug launch configuration: #4224 (comment) In order to debug just press Example of debug configuration: {
"name": "Launch VS Code extension",
"type": "node",
"request": "launch",
"port": 9339,
"timeout": 100000,
"args": [
"${workspaceFolder}/examples/browser/src-gen/backend/main.js",
"${workspaceFolder}",
"--port=3030",
"--hosted-plugin-inspect=9339",
"--plugins=local-dir:${workspaceFolder}/plugins"
],
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": [
"${workspaceFolder}/**/*.js"
],
"internalConsoleOptions": "openOnSessionStart",
"outputCapture": "std"
} |
Hi All,
I would like to contribute and work on plugin-system of theia.
But I'm unable to make the debug setup for the same.
I have followed these setups to debug the ~/theia/packages/plugin-ext/src/plugin/languages/hover.ts file-
so that hover.ts source code is called.
After this step i get the below error-
Could someone please guide me on how to debug the plugin-system that are being develop for theia?
Update:
If i launch backend via command line and just launch fronted i dont get the above error but then breakpoints in hover.ts are not getting hit even though the hover plugin is activated and called.
Thanks
The text was updated successfully, but these errors were encountered: