From ce78947fce4a5e5f3db60363337fa5b25cc22a00 Mon Sep 17 00:00:00 2001 From: Jason Williams <936006+jasonwilliams@users.noreply.github.com> Date: Sun, 3 Jan 2021 18:29:16 +0000 Subject: [PATCH] update launch.json (#1034) - cpp version is no longer needed - add VM launch config using cargo args --- .vscode/launch.json | 33 ++++++++++++--------------------- 1 file changed, 12 insertions(+), 21 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index fb08c9b3c3..891c5839b0 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -16,29 +16,20 @@ "sourceLanguages": ["rust"] }, { - "name": "(Windows) Launch", - "type": "cppvsdbg", + "type": "lldb", "request": "launch", - "args": ["${workspaceFolder}/tests/js/test.js"], - "program": "${workspaceFolder}/target/debug/boa.exe", - "cwd": "${workspaceFolder}", - "sourceFileMap": { - "/rustc/5e1a799842ba6ed4a57e91f7ab9435947482f7d8": "${env:USERPROFILE}/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust", - "/rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447": "${env:USERPROFILE}/.rustup/toolchains/stable-x86_64-pc-windows-msvc/lib/rustlib/src/rust" + "name": "Launch (VM)", + "cargo": { + "args": [ + "run", + "--manifest-path", + "./boa_cli/Cargo.toml", + "--features", + "vm" + ] }, - "stopAtEntry": false, - "symbolSearchPath": "https://msdl.microsoft.com/download/symbols" - }, - { - "name": "(Windows) Launch Debug", - "type": "cppvsdbg", - "request": "launch", - "program": "${workspaceRoot}/target/debug/foo.exe", - "args": [], - "stopAtEntry": false, - "cwd": "${workspaceRoot}", - "environment": [], - "externalConsole": true + "args": ["${workspaceFolder}/tests/js/test.js"], + "sourceLanguages": ["rust"] } ] }