Quantcast
Channel: Node.js Tools for Visual Studio
Viewing all articles
Browse latest Browse all 4630

Closed Unassigned: TypeScript - Breakpoints in Callbacks [735]

$
0
0
Using 'Feb 10, 2014' dev build:

Breakpoints in callback functions don't seem to work correctly. Take this example:

```
/// <reference path="typings/request.d.ts" />
import request = require('request');
request.get('http://www.bing.com', function (err, resp, body)
{
console.log('GET complete: %d', resp.statusCode);
});
```

Setting a breakpoint on the console log in the callback technically works but not as expected - the process stops but you get a generic "Source Not Available" page ("The current thread is not currently running code or the call stack could not be obtained"), with Call Stack and Locals debug windows both blank. Perhaps it hit an error trying to transition from TS to JS or from JS to native and that wiped out the entire thing?

Viewing all articles
Browse latest Browse all 4630

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>