microsoft / debugpy

An implementation of the Debug Adapter Protocol for Python
https://pypi.org/project/debugpy/
Other
1.87k stars 139 forks source link

Logpoints not working if there's no active breakpoints. #1702

Closed farzbood closed 1 month ago

farzbood commented 1 month ago

Hi there, In my experience, when debugging my python code, the Logpoint(s) only works when there'll be at least one active breakpoint set in the editor, and they become inactive/suppressed otherwise (provide no output message). It would be nice to still receive Log messages when debugging code, to be informed of the code behavior even if there were no active breakpoint desired.

P.S Based on the VSCode documentation, Logpoints supposed to replace temp print() lines in the code to help keeping it clean, which is nice, but in the above mentioned situation, developers still have to use those print() lines to get insights!

DEV Environment:

Regards

rchiodo commented 1 month ago

Do you have an example? They work for me:

Image

Output shows up in the Debug Console, not the terminal.

farzbood commented 1 month ago

Hi Rich, Just when I was going to reproduce it, received this update for Python Debugger, and the case resolved. (log points work as expected now)

(edit): I was aware of that, the output channel is DEBUG CONSOLE (that was not the problem)

Image

Thanks for the response anyway Happy Coding