Skip to content

Commit 896fb30

Browse files
committed
Display dlerror ouptut if dlopen fails
1 parent bc6fe51 commit 896fb30

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,7 @@ def run_python_code_linux(pid, python_code, connect_debugger_tracing=False, show
467467
cmd.extend(
468468
[
469469
"--eval-command='call (void*)dlopen(\"%s\", 2)'" % target_dll,
470+
"--eval-command='call (char*)dlerror()'",
470471
"--eval-command='sharedlibrary %s'" % target_dll_name,
471472
"--eval-command='call (int)DoAttach(%s, \"%s\", %s)'" % (is_debug, python_code, show_debug_info),
472473
]

0 commit comments

Comments
 (0)