Simon Marchi
186115cf7a
tslint: Enable prefer-for-of
...
This is not a big deal, but I think it makes the code a bit nicer.
2018-07-18 11:02:49 -04:00
Simon Marchi
e0ed9f71b8
tslint: Enable no-var-requires
...
Rationale from the rule's page:
AMD-style require([]) and CommonJS-style require("") statements are
environment-specific and more difficult to statically analyze.
ES2015-style imports are part of the JavaScript language specfication
and recommended as the path going forward. TypeScript will compile them
to environment-specific forms as needed.
2018-07-18 10:52:48 -04:00
Simon Marchi
d0dc094f4e
tslint: Enable no-null-keyword
...
I find this rule quite useful so that we use undefined all the time.
The rationale on the rule's documentation page is quite clear:
https://palantir.github.io/tslint/rules/no-null-keyword/
2018-07-17 18:48:05 -04:00
Simon Marchi
1244e4133c
Enable tslint with basic rules
...
Add tslint as a plugin to tsc, so that they will show up in vscode or
whatever editor people use. I only enabled two basic rules that I think
are very useful, prefer-const and no-var-keyword. Violations of these
rules were fixed with "tslint -p . --fix". There was one unused
variable (in the isExpandable) function that I removed by hand.
2018-07-17 18:19:37 -04:00
Jelle Roets
16370ea112
add option to use ssh agent for authentication
2018-03-17 17:05:34 +01:00
Jan Jurzitza
8af4b28453
Return if miDebugger is not set in threadsRequest
...
Not sure why it only happens for this function but this fixes the error in the console.
2018-02-21 18:14:18 +01:00
Leszek Swirski
a7b89c3569
Fix crash in threadsRequest with no miDebugger, and undefined thread names
2018-02-21 16:35:39 +00:00
Leszek Swirski
ab0a3bb4be
Support multi-threading
2018-02-02 12:17:33 +00:00
Marcel Ball
d827275613
Fix an issue where an element of an array or struct changing will visually show the change on the containing array/struct.
...
- Getting the change list from GDB will get changes from members.
- Original code was mistakenly using the variable name from the outside object when looking up the handle to apply the changes instead of the variable name in the changelist.
2018-01-24 16:02:45 -04:00
Marcel Ball
cdee9d6420
Fix bug with MI Parsing if there is a list with empty strings
...
A JavaScript string is a falsy value - but an empty string is valid in these positions - so need to explicitly check for undefined instead of just falsy.
2018-01-24 16:00:04 -04:00
Marcel Ball
2219810715
Fix GDB expansion of structures/arrays containing floating point values.
2018-01-24 15:56:02 -04:00
WebFreak001
d39cdc9633
Typescript fixes
2017-07-23 19:57:12 +02:00
gentoo90
90c7b76f78
Add "var_" prefix to var object names
...
The name of var object should begin with a letter, so names like "_id"
caused errors.
2017-06-10 15:08:31 +03:00
gentoo90
c313af85b2
Fix varListChildren() when there are no children
...
Return [] instead of throwing exception.
2017-06-10 15:01:21 +03:00
gentoo90
ca0f86a37c
Don't swallow errors on varUpdate()
...
Add MIError class for exceptions. Check error type on varUpdate() failure
and rethrow if it's not "Variable object not found".
2017-06-10 14:55:41 +03:00
gentoo90
beb80f7375
Add valuesFormatting parameter to launch config
2017-05-26 22:48:33 +03:00
gentoo90
d498b381bf
Use var-assign to set variables values
2017-05-26 11:14:42 +03:00
gentoo90
2551dba725
Reuse variable objects, utilize var-update
...
Same variables now have same ids in each VariablesResponse.
This allows vscode to keep track of changes properly and prevents
collapsing of all variables after every step.
2017-05-25 23:49:19 +03:00
gentoo90
77b689443f
Reuse ids of stask frames, add some type inference
...
Use GDB's stask frames number as its id in vscode
2017-05-25 23:02:26 +03:00
gentoo90
f171d9f4ac
Utilize GDB/MI Variable Objects for local variables
...
Replace own value parser with GDB's variable objects interface.
See https://sourceware.org/gdb/onlinedocs/gdb/GDB_002fMI-Variable-Objects.html
2017-05-20 19:20:50 +03:00
gentoo90
18f1a101c8
Use async/await in variablesRequest
2017-05-20 19:20:50 +03:00
gentoo90
6713545970
Use async/await in getStackVariables
2017-05-20 19:20:50 +03:00
WebFreak001
907fbd5004
Process environment extends original one now #98
2017-04-26 19:34:19 +02:00
WebFreak001
a21e2e65af
Fix #98
2017-04-14 18:26:40 +02:00
WebFreak001
656ef0d2c0
Fix #102
2017-04-14 18:11:36 +02:00
WebFreak001
3269e86675
Added unknown source correctly this time
2017-02-10 19:45:45 +01:00
WebFreak001
758464a427
Fix #93
2017-02-10 19:42:43 +01:00
WebFreak001
318ece44cf
Added special commands for extended-remote fix #91
2017-01-09 00:33:21 +01:00
WebFreak001
4f8ae4eb24
Attach over ssh with gdb ( fix #83 )
2016-12-31 15:16:12 +01:00
WebFreak001
9b317a1a1a
Reverse continue
2016-12-20 22:37:25 +01:00
Mrmaxmeier
c831c4d4e4
implement debugger_args option
2016-12-11 21:38:17 +01:00
WebFreak001
9e478cb675
Fix compilation
2016-12-07 00:46:27 +01:00
WebFreak001
c7370d894a
support breakpoint hit count
2016-12-07 00:41:15 +01:00
WebFreak001
2f2d0294f4
typescript upgrade
2016-12-07 00:10:55 +01:00
WebFreak001
4393a315fa
Fix #78 (silent ignore on windows)
2016-12-07 00:02:39 +01:00
WebFreak001
e43bec9f07
Unicode fix #77
2016-12-06 23:53:34 +01:00
WebFreak001
9e5d12551f
Fallback to raw output when JSON.parse fails
...
Partial fix for #77
2016-12-06 23:25:16 +01:00
Alex Sadler
2cd3ecd7db
Escape breakpoint file path
...
Escape before quoting
2016-11-14 21:28:19 +00:00
Alex Sadler
f0c30a91b0
Quote input when adding breakpoint
...
File path and line number are now double quoted when specified explicitly. Before only when using raw input was it double quoted.
2016-11-14 17:04:02 +00:00
WebFreak001
d34bfb7c43
added trace constant for finding extension crashes
2016-10-23 17:26:47 +02:00
WebFreak001
839766a065
Using undefined instead of "<unknown>" for UI
2016-09-10 22:22:10 +02:00
WebFreak001
bf519c8bab
Fixed cygdrive paths in stack request ( fix #72 )
2016-09-04 17:11:20 +02:00
WebFreak001
6ead793c09
Added variables for file (base)name w/o extension
...
fix #71
2016-08-26 23:21:57 +02:00
WebFreak001
17376317b2
Made utility command server warning more clear
2016-08-13 13:38:21 +02:00
WebFreak001
5fc8765678
Fixed C/C++ argument list & char*[]
...
Fix #69 (hihi Kappa)
2016-08-13 13:34:34 +02:00
WebFreak001
d3b0bb79a1
Fixed memory view for C/C++ strings
2016-08-11 19:52:25 +02:00
WebFreak001
640abf822b
Added showDevDebugOutput option to debug GDB calls
2016-08-08 17:56:20 +02:00
WebFreak001
87ff8b8644
Added examining memory locations ( fix #64 )
...
also added a way to run mi commands over unix domain sockets so other applications can communicate with code-debug
2016-07-23 02:13:36 +02:00
WebFreak001
e78733308e
Added more error catches
2016-07-23 02:10:31 +02:00
WebFreak001
ef1f4782b4
Fixed entering MI commands into the debug console
2016-07-10 17:33:25 +02:00