Last active
September 12, 2016 23:01
-
-
Save nwgh/dfcd02d4875e966ca6caa1c24a511687 to your computer and use it in GitHub Desktop.
LLDB VS Code Fail
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/s/m/gecko> ./mach compileflags netwerk/protocol/http/nsHttpChannel.cpp | |
/usr/local/clang/current/bin/clang++ -std=gnu++11 -fvisibility=hidden -fvisibility-inlines-hidden -DDEBUG=1 -DTRACING=1 -DOS_POSIX=1 -DOS_MACOSX=1 -DSTATIC_EXPORTABLE_JS_API -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL -I/Users/nwgh/src/mozilla/gecko/netwerk/protocol/http -I/Users/nwgh/src/mozilla/gecko/obj-dbg-noopt/netwerk/protocol/http -I/Users/nwgh/src/mozilla/gecko/obj-dbg-noopt/ipc/ipdl/_ipdlheaders -I/Users/nwgh/src/mozilla/gecko/ipc/chromium/src -I/Users/nwgh/src/mozilla/gecko/ipc/glue -I/Users/nwgh/src/mozilla/gecko/dom/base -I/Users/nwgh/src/mozilla/gecko/netwerk/base -I/Users/nwgh/src/mozilla/gecko/obj-dbg-noopt/dist/include -I/Users/nwgh/src/mozilla/gecko/obj-dbg-noopt/dist/include/nspr -I/Users/nwgh/src/mozilla/gecko/obj-dbg-noopt/dist/include/nss -fPIC -DMOZILLA_CLIENT -include /Users/nwgh/src/mozilla/gecko/obj-dbg-noopt/mozilla-config.h -Qunused-arguments -Qunused-arguments -Qunused-arguments -Wall -Wc++11-compat -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wno-invalid-offsetof -Wclass-varargs -Wloop-analysis -Wc++11-compat-pedantic -Wc++14-compat -Wc++14-compat-pedantic -Wimplicit-fallthrough -Werror=non-literal-null-conversion -Wstring-conversion -Wthread-safety -Wno-inline-new-delete -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-unknown-warning-option -Wno-return-type-c-linkage -fno-exceptions -fno-strict-aliasing -stdlib=libc++ -fno-rtti -fno-exceptions -fno-math-errno -pthread -pipe -g -fno-omit-frame-pointer -Werror |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[snip a whole bunch of "Loaded '/path/to/library.dylib'. Symbols loaded." messages] | |
ERROR: Error while trying to enter break state. Debugging will now stop. Cannot access a disposed object. | |
Object name: 'Debugger'. | |
ERROR: LLDB exited unexpectedly with exit code 139 (0x8B). Debugging will now abort. | |
The program '/Users/nwgh/src/mozilla/gecko/obj-dbg-noopt/dist/NightlyDebug.app/Contents/MacOS/firefox' has exited with code -1 (0xffffffff). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
int | |
main() | |
{ | |
int x = 0; | |
std::cout << "Please enter a number: " << std::endl; | |
std::cin >> x; | |
std::cout << "You entered " << x << std::endl; | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Debug", | |
"type": "cppdbg", | |
"request": "launch", | |
"program": "${workspaceRoot}/obj-dbg-noopt/dist/NightlyDebug.app/Contents/MacOS/firefox", | |
"cwd": "${workspaceRoot}/obj-dbg-noopt/dist/NightlyDebug.app/Contents/MacOS", | |
"args": ["-no-remote", "-profile", "${env.HOME}/.mozprofiles/debug"], | |
"environment": [{"name": "MOZ_LOG", "value": "timestamp,nsHttp:5"}, | |
{"name": "MOZ_LOG_FILE", "value": "/tmp/nspr.log"}, | |
{"name": "SSLKEYLOGFILE", "value": "/tmp/nsskeys.log"}], | |
"externalConsole": false, | |
"linux": { | |
"MIMode": "gdb" | |
}, | |
"osx": { | |
"MIMode": "lldb" | |
}, | |
"windows": { | |
"MIMode": "gdb" | |
} | |
}, | |
{ | |
"name": "C++ Attach", | |
"type": "cppdbg", | |
"request": "attach", | |
"program": "enter program name, for example ${workspaceRoot}/a.out", | |
"processId": "${command.pickProcess}", | |
"linux": { | |
"MIMode": "gdb" | |
}, | |
"osx": { | |
"MIMode": "lldb" | |
}, | |
"windows": { | |
"MIMode": "gdb" | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment