debugging

How to debug server side TypeScript code in WebStorm

丶灬走出姿态 提交于 2020-01-12 14:24:46
问题 Comparing this to Visual Studio Code all you need to do is allow source maps and VSCode will debug TypeScript however I can't achieve the same on WebStorm. I can easily debug server side JavaScript in WebStorm but not TypeScript 回答1: For anyone else wrestling with debugging TypeScript in WebStorm/IDEA, I had similar frustrations as OP (possibly for different reason). My issue was simply that I didn't set the working directory to the dist folder in the node run configuration. I am running

Xcode Debugger - how to single step at level of CPU instructions

江枫思渺然 提交于 2020-01-12 14:06:54
问题 This is definitely obsessive, but I am fascinated by how cleverly the compiler translates C code into machine instructions. Since I am a little fuzzy on some instructions, it would be helpful if I could watch the operation of a compiled program at the level of individual machine instructions - "below" the level of a C statement (which might generate several CPU instructions). In other words, can I watch the registers/memory change after a single machine instruction? I'm sure it's possible

Xcode Debugger - how to single step at level of CPU instructions

馋奶兔 提交于 2020-01-12 14:05:30
问题 This is definitely obsessive, but I am fascinated by how cleverly the compiler translates C code into machine instructions. Since I am a little fuzzy on some instructions, it would be helpful if I could watch the operation of a compiled program at the level of individual machine instructions - "below" the level of a C statement (which might generate several CPU instructions). In other words, can I watch the registers/memory change after a single machine instruction? I'm sure it's possible

How to jump back to the line of code that threw exception in Visual Studio 2010 debugger?

廉价感情. 提交于 2020-01-12 14:00:44
问题 Using the Visual Studio 2010 debugger, I am familiar with using the Call Stack window to see where the currently executing function was invoked from. I'm working with some applications that have rather large try blocks. Supposing that I pause execution of the code at a break point in the catch block, what is the simplest way to tell which line in the try block the exception was raised from? I do know that the "Stack Trace" includes details such as the line number, but is there an easier way,

How to jump back to the line of code that threw exception in Visual Studio 2010 debugger?

六月ゝ 毕业季﹏ 提交于 2020-01-12 14:00:35
问题 Using the Visual Studio 2010 debugger, I am familiar with using the Call Stack window to see where the currently executing function was invoked from. I'm working with some applications that have rather large try blocks. Supposing that I pause execution of the code at a break point in the catch block, what is the simplest way to tell which line in the try block the exception was raised from? I do know that the "Stack Trace" includes details such as the line number, but is there an easier way,

How to debug child Node.JS process in Visual Studio Code?

拜拜、爱过 提交于 2020-01-12 13:56:12
问题 How to debug child Node.JS process in VS Code? Here is the example of the code that I'm trying to debug: var spawn = require('child_process').spawn; var scriptPath = './child-script.js'; var runner_ = spawn('node', [scriptPath]); 回答1: You can easily add a new launch configuration to launch.json that allows you to attach to a running node instance with a specific port: { "name": "Attach to Node", "type": "node", "address": "localhost", "port": 5870, } Just make sure you fork/spawn your node

stop eclipse CDT from debugging from main

痴心易碎 提交于 2020-01-12 13:53:10
问题 so if I debug my C++ code using eclipse CDT, it appears that it always start the debugging process from the main() function even though there is no breakpoint at the beginning main()... is there a way to have eclipse CDT start to debug from the first breakpoint rather than main()? 回答1: On the menu Run -> Debug Configurations , right click the C/C++ Applications item on the left, and create New configuration. Go to the Debugger tab and uncheck the Stop on startup at checkbox. 来源: https:/

android debugger does not stop at breakpoints

末鹿安然 提交于 2020-01-12 11:48:08
问题 I am seeing debug statements in the console but the debugger does not stop on any breakpoints. I tried clearing all breakpoints and adding them back in. Not sure how this can happen but it is. 回答1: Have you set the debuggable flag in the AndroidManifest? If you miss that, do so by adding android:debuggable="true" in the application tag. It should look like that in the end: <application android:icon="@drawable/icon" android:label="@string/app_name" android:debuggable="true"> 回答2: If you use

Which tool to use to open .pdb (symbol) files?

本小妞迷上赌 提交于 2020-01-12 10:35:18
问题 I have .pdb file, downloaded from MS symbols server. I need to fetch list of symbols (functions, arguments, anything it has). There is a tool on CodeProject, but it only reports modules. There is DbgHelp API, but it only could be attcahed to running process. How can I read .pdb file offline? 回答1: Good News for anyone still looking, The information you seek is now open source! https://github.com/Microsoft/microsoft-pdb Some real interesting stuff there. Like this pdbdump.cpp file, with its

ember.js: how to debug based on assets/vendor-*.js

不羁岁月 提交于 2020-01-12 10:21:53
问题 This is more of a general question, but I imagine others have encountered this problem as well -- see for instance this SO question: Ember.js: how to analyze error in vendor.js I am working on a larger Ember-based application, where, if errors occur, I sometimes get rather cryptic stack traces, similar to this sample: TypeError: e.indexOf is not a function at e.func (https://XXX/assets/vendor-c3ea8aab9a11f79411cf3b32532ea544.js:13:6039) at e.get (https://XXX/assets/vendor