question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Debugger-specific args not being stripped out in experimental debugger

See original GitHub issue

I’m defining a simple excepthook callback to log any unhandled exceptions raised in my python code. When I run the main application with Debug->Start Debugging the except hook works as expected. However the Without debugging mode somehow interferes and I don’t see my print message or the exception information logged to my debug log. I’m on a Mac OSX if that matters.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
jxramoscommented, Sep 27, 2018

Looks good!

launch.json

       {
            "name": "Python: MyTestConfig",
            "type": "python",
            "request": "launch",
            "program": "${file}",
            "args": [...

Unhandled message in log file

2018-09-27 13:26:13(559772773.065) [MainThread] [CRITICAL] CommonLogging.log_unhandled_exception CRITICAL ERROR: Unhandled Exception:
  Type <type 'exceptions.ValueError'>
  Value: Blow em up dude!
  Traceback: None

VSCode Version 1.27.2 image

Python Extension 2018.8.0 image

0reactions
DonJayamannecommented, Sep 27, 2018

@jxramos This issue has been resolved, please could you install the latest development version of the extension from here and validate it https://github.com/Microsoft/vscode-python/issues/1385

Read more comments on GitHub >

github_iconTop Results From Across the Web

Xcode 13: Active breakpoint turns to an outline when app is run.
The compiler generates debug information that is not stripped out (check the Build Settings). The library for the breakpoint is loaded. Posted 5...
Read more >
A Time Travelling Debugger for Python
Abstract. Time travelling debuggers (TTD) allow programmers to step backwards through the execution of their program, helping them to explore code and find ......
Read more >
Command-Line Reference | Bazel
print_action, Prints the command line args for compiling a file. ... option to add some profiler/debugger-specific JVM startup flags.
Read more >
Command-Line Reference - Bazel 1.2.0
print_action, Prints the command line args for compiling a file. ... Convenience option to add some profiler/debugger-specific JVM startup flags.
Read more >
Debug Node.js Apps using Visual Studio Code
can be used for the runtimeExecutable attribute and arguments can be passed via runtimeArgs . You do not have to set the program...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found