-
Notifications
You must be signed in to change notification settings - Fork 464
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
Please remove your debugger;
statements in production builds
#4056
Comments
debugger;
statements in production builds
@paulober You can control how much logging comes from our extension by setting the |
Signed-off-by: paulober <44974737+paulober@users.noreply.github.com>
@gcampbell-msft Please reopen and remove the debugger calls. It's just rude for other extension devs. (Sorry for my tone but deploying debugger statements and then shutting of people reporting it (twice) triggers me. Therefor I created a quick PR that will fix this in the next release) |
And @Yingzi1234, as per your request for more information on whether debugger statements should be included in production code, I conduced a little research and here's a brief excerpt from LinkedIn's Web Developer advice:
source: https://www.linkedin.com/advice/1/what-debugger-statement-how-can-you-use-effectively Or in one of the expert comments on this article:
or
or
and a last one from a different source:
|
@paulober Thanks for the PR! We greatly appreciate it, I'll review it now 👍 |
thanks |
Brief Issue Summary
Currently the released main.js in the cmake-tools extension includes serveral
debugger;
statements like in line 11006, 110061, 97194, 97223, 97311 and some more.Since CMake-tools already floods the dev console, these debugger statements only add to the frustration, making it even more difficult to debug your own extensions when the extension is installed and enabled. Especially when working with virtual workspaces, it's all too common to get stuck in your own source code.
CMake Tools Diagnostics
Debug Log
Additional Information
An excerpt from the dev console:
The text was updated successfully, but these errors were encountered: