Skip to content

Commit

Permalink
Optional python.
Browse files Browse the repository at this point in the history
  • Loading branch information
vadimcn committed Oct 16, 2019
1 parent 2ac8df1 commit 1bc433b
Show file tree
Hide file tree
Showing 20 changed files with 802 additions and 529 deletions.
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.vscode
build*
target
node_modules
.vscode/
build*/
target/
node_modules/
*.pyc
47 changes: 36 additions & 11 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "attach",
"name": "Attach",
"pid": "${command:pickMyProcess}" // use ${command:pickProcess} to pick other users' processes
},
{
"name": "extension",
"preLaunchTask": "make dev_debugging",
Expand Down Expand Up @@ -40,14 +46,17 @@
"request": "launch",
"program": "${workspaceFolder}/build/adapter2/codelldb",
"args": [
"--preload=${workspaceFolder}/build/lldb/lib/liblldb.so.8.0.1-custom",
//"--liblldb=${workspaceFolder}/build/lldb/lib/liblldb.so",
"--multi-session",
"--port=4711"
],
"env": {
"RUST_LOG": "error,codelldb=debug",
"RUST_LOG_STYLE": "always",
"RUST_BACKTRACE": "1",
// "LLDB_DISABLE_PYTHON": "1",
// "LD_DEBUG": "all",
// "LD_DEBUG_OUTPUT": "/tmp/codelldb.log"
},
"sourceLanguages": [
"cpp",
Expand All @@ -62,7 +71,7 @@
"request": "launch",
"program": "${workspaceFolder}/build/adapter2/codelldb",
"args": [
"--preload=${workspaceFolder}/build/lldb/lib/liblldb.8.0.1-custom.dylib",
//"--preload=${workspaceFolder}/build/lldb/lib/liblldb.dylib",
"--multi-session",
"--port=4711"
],
Expand All @@ -84,7 +93,7 @@
"request": "launch",
"program": "${workspaceFolder}/build/adapter2/codelldb",
"args": [
"--preload=${workspaceFolder}/build/lldb/bin/liblldb.dll",
//"--preload=${workspaceFolder}/build/lldb/bin/liblldb.dll",
"--multi-session",
"--port=4711"
],
Expand Down Expand Up @@ -114,13 +123,27 @@
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [
{ "name": "PATH", "value":"${env:PATH};C:\\Python36-64;${workspaceFolder}\\build\\lldb\\bin" },
{ "name":"RUST_LOG", "value":"error,codelldb=debug"},
{ "name":"RUST_LOG_STYLE", "value":"always"},
{ "name":"RUST_BACKTRACE", "value":"full"},
{
"name": "PATH",
"value": "${env:PATH};C:\\Python36-64;${workspaceFolder}\\build\\lldb\\bin"
},
{
"name": "RUST_LOG",
"value": "error,codelldb=debug"
},
{
"name": "RUST_LOG_STYLE",
"value": "always"
},
{
"name": "RUST_BACKTRACE",
"value": "full"
},
],
//"externalConsole": true,
"sourceFileMap": { "C:\\_work\\4\\s": "c:\\NW\\cpython" }
"sourceFileMap": {
"C:\\_work\\4\\s": "c:\\NW\\cpython"
}
},
{
"name": "codelldb python",
Expand Down Expand Up @@ -155,7 +178,6 @@
"--test-threads=1"
],
"env": {
"PATH": "${env:PATH}:/usr/lib/llvm-6.0/bin",
"RUST_LOG": "debug",
"RUST_BACKTRACE": "1",
},
Expand All @@ -173,8 +195,10 @@
"cwd": "${workspaceRoot}/build",
"program": "${workspaceRoot}/build/node_modules/mocha/bin/_mocha",
"args": [
"-u", "tdd",
"--timeout", "999999",
"-u",
"tdd",
"--timeout",
"999999",
"--colors",
"--exit",
//"-g", "Environment",
Expand Down Expand Up @@ -213,5 +237,6 @@
"target modules load --file ${env:HOME}/tmp/echo -s 0x4000000000"
]
},

]
}
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
"files.insertFinalNewline": true,
"files.trimTrailingWhitespace": true,
"python.linting.enabled": false,
"lldb.verboseLogging": true
"lldb.verboseLogging": true,
}
6 changes: 0 additions & 6 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,6 @@
"doc_lldb"
]
},
{
"label": "make test_codelldb",
"args": [
"test_codelldb"
]
},
{
"label": "make cargo_test",
"args": [
Expand Down
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
cmake_minimum_required(VERSION 3.10)
project(CodeLLDB)

set(VERSION 1.3.1-dev)

Expand All @@ -9,6 +10,7 @@ set(LLDB_ROOT $ENV{LLDB_ROOT} CACHE PATH "Root of LLDB build directory")
if (NOT LLDB_ROOT)
message(FATAL_ERROR "LLDB_ROOT not set." )
endif()
message("Using LLDB from ${LLDB_ROOT}")

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_INSTALL_PREFIX $ENV{HOME}/.vscode/extensions/vscode-lldb CACHE PATH "Install location")
Expand Down Expand Up @@ -103,9 +105,12 @@ set(PackagedFilesFull
adapter2/*.py
adapter2/codelldb
adapter2/libcodelldb.so
adapter2/libcodelldb_python.so
adapter2/libcodelldb.dylib
adapter2/libcodelldb_python.dylib
adapter2/codelldb.exe
adapter2/codelldb.dll
adapter2/codelldb_python.dll
lldb/bin/**/*
lldb/lib/**/*
)
Expand Down
Loading

0 comments on commit 1bc433b

Please sign in to comment.