-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
Development: Add Visual Studio Code debugging configuration #10586
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is awesome! 😀 I vote to include, especially since most of our team are vscode converts 😄
Also makes it so much easier for people to get started contributing
awesome.. |
Of course I vote to ship it ;)
|
Thanks for those remarks! @mrsimpson :) |
* develop: Regression: Various search provider fixes (RocketChat#10591) Fix /api/v1/settings.oauth not sending needed info for SAML & CAS (RocketChat#10596) Fix the Apps and Livechats not getting along well with each other (RocketChat#10598) [FIX] Missing "Administration" menu for users with some administration permissions (RocketChat#10551) [FIX] Member list search with no results (RocketChat#10599) Adds Visual Studio Code debugging configuration (RocketChat#10586) [FIX] Integrations with room data not having the usernames filled in (RocketChat#10576)
* goalify: (104 commits) Regression: Various search provider fixes (RocketChat#10591) Supplement TOS and privacy policy texts for use within server instances Fix /api/v1/settings.oauth not sending needed info for SAML & CAS (RocketChat#10596) Fix the Apps and Livechats not getting along well with each other (RocketChat#10598) [FIX] Missing "Administration" menu for users with some administration permissions (RocketChat#10551) [FIX] Member list search with no results (RocketChat#10599) merge vi-VN and vi json Add and enhance translations Update gitlab, npm package lock, include current server update script Adds Visual Studio Code debugging configuration (RocketChat#10586) [FIX] Integrations with room data not having the usernames filled in (RocketChat#10576) fixed problems with margin negative (RocketChat#10558) Add some information regarding Zapier and Bots to the integrations page (RocketChat#10574) Added target="_blank" to homepage and support link. (RocketChat#10575) [FIX] Stop Firefox announcement overflowing viewport (RocketChat#10503) [FIX] Wordpress oAuth authentication wasn't behaving correctly (RocketChat#10550) Fix inconsistent response of settings.oauth endpoint (RocketChat#10553) Regression: Remove added mentions on quote/reply (RocketChat#10571) Fix the attachments and fields incorrectly failing on validation (RocketChat#10573) Deps update (RocketChat#10549) ...
Under wsl ubuntu 20.04, when I start server, error occurs, anyone knows why? /mnt/c/Program Files/nodejs//npm run debug-brk |
Special thanks to @mrsimpson for his effort and research, we now have the ability to debug and step through the Rocket.Chat application via Visual Studio Code's amazing debugging!!
There are a few different configurations, so I'll explain what they are:
Attach to meteor debug
- use this when you have already started the application vianpm run debug
Frontend (Chrome)
- this opens a new Chrome instance and allows debugging the client code inside of VSCodeServer (debug)
- launches the server code but it only hits breakpoints after Meteor has started upServer (debug-brk)
- launches the server code, however it allows setting a breakpoint in code that Meteor calls during the startup phaseServer (Testmode)
- works like the regular debug but has the environmental variableTEST_MODE
set to true.Server + Frontend
- launches both the server and frontend, with the server beingdebug-brk
I personally use this and love it now. I nearly always start Rocket.Chat with this now ;)