Skip to content
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

[Feature]: Activate function logpoint with comment or something in the code itself #119

Open
ck-coatue opened this issue Mar 24, 2023 · 1 comment
Assignees

Comments

@ck-coatue
Copy link

Describe the feature you'd like.

Function logpoints are so useful, but I'm way more used to printf debugging (console.log, trace, etc.) than setting breakpoints in vscode.

Also at least for me, breakpoint functionality in vscode is buggy. For example, right clicking on an existing breakpoint sometimes doesn't bring up the context menu to remove it. And then when it does work (usually by restarting vscode), attempting to remove them displays an error modal with "Cannot read properties of undefined (reading 'id')" most of the time.

@ArtemGovorov
Copy link
Member

Triggering function logpoints via code is a good idea. We'll experiment a bit to find the best/intuitive way to trigger it.

For example, right clicking on an existing breakpoint sometimes doesn't bring up the context menu to remove it.

This is a known limitation of VS Code API/UX when rendering a line gutter icon makes the breakpoint icon not clickable. The suggested solution is to use F9 keyboard shortcut (or corresponding command(s) via VS Code command palette) to toggle the breakpoint.

attempting to remove them displays an error modal with "Cannot read properties of undefined (reading 'id')" most of the time.

This issue doesn't seem to be Console Ninja related. Can you please open VS Code Dev Tools (Developer: Open Webview Developer Tools) and share the stack trace for the error when it happens?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants