Skip to content

Commit

Permalink
Add message for ptrace_scope fail
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxiaomao committed Apr 19, 2024
1 parent b1fab07 commit 73d0e0b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/HLAdapter.hx
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,8 @@ class HLAdapter extends DebugSession {
var api = new hld.NodeDebugApiNative(pid, dbg.is64);
if( !dbg.init(api) ) {
onError("Failed to initialize debugger");
if( Sys.systemName() == "Linux" )
trace("On Linux, please try set /proc/sys/kernel/yama/ptrace_scope to 0");
return;
}
dbg.eval.allowEvalGetters = allowEvalGetters;
Expand Down

0 comments on commit 73d0e0b

Please sign in to comment.