Rust编写的JavaScript引擎,该项目是一个试验性质的项目。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.6 KiB

6 years ago
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Launch",
"windows": {
"program": "${workspaceFolder}/target/debug/boa.exe"
},
"program": "${workspaceFolder}/target/debug/boa",
"args": [
"${workspaceFolder}/tests/js/test.js"
],
"sourceLanguages": [
"rust"
]
},
{
"name": "(Windows) Launch",
"type": "cppvsdbg",
"request": "launch",
"args": [
"${workspaceFolder}/tests/js/test.js"
],
"program": "${workspaceFolder}/target/debug/boa.exe",
"cwd": "${workspaceFolder}",
"sourceFileMap": {
console functions (#315) * Exec do..while tests. * Parser do..while test. * Do..while loop parser and exec implementation * rustfmt fixes * Update boa/src/exec/mod.rs Co-Authored-By: HalidOdat <halidodat@gmail.com> * Use expect(), make expect() skip newlines * rustmf fixes * Revert "Use expect(), make expect() skip newlines" This reverts commit 517c4d0e065a3cd959e4aae65cc143c2a1019f1c. * Cargo Test Build task and Debug Test (Windows) launcher * First attempt at console.assert implementation. Tests are just for debugging. Run `cargo test console_assert -- --nocapture` to see stderror messages. * Refactoring - remove unnecessary map, variable rename. * Update boa/src/builtins/console.rs changes from HalidOdat Co-Authored-By: HalidOdat <halidodat@gmail.com> * Documentation fixes * Remove space from documentation comment * Update boa/src/builtins/console.rs Simplify message printing. Co-Authored-By: Iban Eguia <razican@protonmail.ch> * Update boa/src/builtins/console.rs Improve docs. Co-Authored-By: Iban Eguia <razican@protonmail.ch> * Update boa/src/builtins/console.rs Improve getting of assertion result. Co-Authored-By: Iban Eguia <razican@protonmail.ch> * rustfmt * console.count() and console.countReset() implementation * Console state as native rust type, temporarily placed in Realm. * console.time[,Log,End] methods implementation * ConsoleState as internal state in console object. * Fix merge mess * Formatter function, get_arg_at_index moved out to function * Fix merge mess, pt. 2 * console.group* functions * Moved console code to its own subdirectory, formatter tests, fixed utf-8 handling. * Most functions implemented. * Basic logger and logLevel implementation * console.group uses logger * console.dir (and at the same time dirxml) implementation * Make builtins::value::display_obj(...) public * Update boa/src/builtins/console/mod.rs Co-Authored-By: HalidOdat <halidodat@gmail.com> * Update boa/src/builtins/console/mod.rs Co-Authored-By: HalidOdat <halidodat@gmail.com> * Update boa/src/builtins/value/mod.rs Co-Authored-By: Iban Eguia <razican@protonmail.ch> Co-authored-by: HalidOdat <halidodat@gmail.com> Co-authored-by: Iban Eguia <razican@protonmail.ch>
5 years ago
"/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"
},
"stopAtEntry": false,
"symbolSearchPath": "https://msdl.microsoft.com/download/symbols"
console functions (#315) * Exec do..while tests. * Parser do..while test. * Do..while loop parser and exec implementation * rustfmt fixes * Update boa/src/exec/mod.rs Co-Authored-By: HalidOdat <halidodat@gmail.com> * Use expect(), make expect() skip newlines * rustmf fixes * Revert "Use expect(), make expect() skip newlines" This reverts commit 517c4d0e065a3cd959e4aae65cc143c2a1019f1c. * Cargo Test Build task and Debug Test (Windows) launcher * First attempt at console.assert implementation. Tests are just for debugging. Run `cargo test console_assert -- --nocapture` to see stderror messages. * Refactoring - remove unnecessary map, variable rename. * Update boa/src/builtins/console.rs changes from HalidOdat Co-Authored-By: HalidOdat <halidodat@gmail.com> * Documentation fixes * Remove space from documentation comment * Update boa/src/builtins/console.rs Simplify message printing. Co-Authored-By: Iban Eguia <razican@protonmail.ch> * Update boa/src/builtins/console.rs Improve docs. Co-Authored-By: Iban Eguia <razican@protonmail.ch> * Update boa/src/builtins/console.rs Improve getting of assertion result. Co-Authored-By: Iban Eguia <razican@protonmail.ch> * rustfmt * console.count() and console.countReset() implementation * Console state as native rust type, temporarily placed in Realm. * console.time[,Log,End] methods implementation * ConsoleState as internal state in console object. * Fix merge mess * Formatter function, get_arg_at_index moved out to function * Fix merge mess, pt. 2 * console.group* functions * Moved console code to its own subdirectory, formatter tests, fixed utf-8 handling. * Most functions implemented. * Basic logger and logLevel implementation * console.group uses logger * console.dir (and at the same time dirxml) implementation * Make builtins::value::display_obj(...) public * Update boa/src/builtins/console/mod.rs Co-Authored-By: HalidOdat <halidodat@gmail.com> * Update boa/src/builtins/console/mod.rs Co-Authored-By: HalidOdat <halidodat@gmail.com> * Update boa/src/builtins/value/mod.rs Co-Authored-By: Iban Eguia <razican@protonmail.ch> Co-authored-by: HalidOdat <halidodat@gmail.com> Co-authored-by: Iban Eguia <razican@protonmail.ch>
5 years ago
},
{
"name": "(Windows) Launch Debug",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceRoot}/target/debug/foo.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceRoot}",
"environment": [],
"externalConsole": true
},
]
}