debugging

How do I debug a war file on a remote machine?

此生再无相见时 提交于 2020-01-04 01:50:28
问题 If I have a jboss server running on another machine and I scp my war file to that machine, how do I debug the war? what commands would I use? How do I do this in my terminal? 回答1: Run jboss with the debug arguments on the remote machine: -Xdebug -Xrunjdwp:transport=dt_socket,address=54371,server=y,suspend=y address - this will be the port you want to connect on server - signifies it will be the server suspend - will block execution of the application until a debugger connects (specify n if

how to step into system.web.mvc

半世苍凉 提交于 2020-01-04 01:36:31
问题 Does anyone have know how I can step into system.web.mvc? I am getting an error (Cannot create an abstract class) that is buried in the System.Web.Mvc.DefaultModelBinder.CreateModel method, and I can't tell which part of my code is causing the issue. I was advised that I could download the sourcecode from codeplex, (actually microsoft.com/downloads as I am using 1.0), build in Debug and then step through. I tried, unfortunately the system.web.mvc was installed in GAC, thus causing an

C: Segmentation fault: GDB: <error reading variable>

孤人 提交于 2020-01-04 01:36:12
问题 I have a function shortestPath() that is a modified implementation of Dijkstra's algorithm for use with a board game AI I am working on for my comp2 class. I have trawled through the website and using gdb and valgrind I know exactly where the segfault happens (actually knew that a few hours ago), but can't figure out what undefined behaviour or logic error is causing the problem. The function in which the problem occurs is called around 10x and works as expected until it segfaults with GDB:

How to execute batch file before debugging with VS Code

被刻印的时光 ゝ 提交于 2020-01-04 01:19:40
问题 I'm developing with Typescript, nodeJS and VS Code. Debugging with VS Code, I have configuration in my launch.json . { "type": "node", "request": "launch", "name": "Launch via NPM", "runtimeExecutable": "npm", "runtimeArgs": [ "run-script", "debug" ], "port": 9229 }, Is it possible to run a batch file before the service is started? With console I would normally run it with env.cmd npm start 回答1: You should create a new task that you want to execute before debug with a specified "identifier"

Good Linux TCP/IP monitoring tools that don't need root access?

萝らか妹 提交于 2020-01-03 22:55:11
问题 I want to debug TCP/IP interactions for a program I'm enhancing. I don't have root access (so no tcpdump etc), but the app runs under my own id. I could use e.g. strace to intercept the system calls, but are there alternatives worth recommending over that? If so, why - what do they offer? Command line prefered (no X server installed on my PC right now :-(), but curious about GUIs too. Ideally, it would say something like: app listening on port <portA> app listening on port <portB> client

Qt App Crashes If Ran Without a QDebug Message First

家住魔仙堡 提交于 2020-01-03 21:05:13
问题 I've been working on an application every day for a while, like a few weeks now, and have gotten pretty far in development. I had an unnecessary class which was just forwarding an object creation. It was basically a "Window" class that created a "Widget" class. So instead of going through that unnecessary "Window" class to create the "Widget" class, I just created the "Widget" class directly in the main "App" class. But now if I run it, the app crashes as if it were in some recursive loop and

Pass custom debug information to Microsoft bot framework emulator

佐手、 提交于 2020-01-03 20:58:45
问题 I am developing a bot based on a .NET Bot Builder SDK. Is it possible for a bot to pass some debug information together with the message, so I can see it in the Details section of the Bot Framework Chanel Emulator when the message is clicked? 回答1: Great Question. Yes, it is entirely possible. You can use the ChannelData property of your activity you are responding with. The data entered into the ChannelData property must be valid JSON For example: var reply = activity.CreateReply("test");

Can we edit our code while running the application

…衆ロ難τιáo~ 提交于 2020-01-03 20:12:54
问题 i did this work Tools->Options->Debugging 'Break all processes when one process breaks' is enabled that time also same problem existing 回答1: Visual Studio has a feature called Edit and Continue. This means you can break the execution, do the change, and then resume it (providing that the changes can be compiled and that the change is supported by Edit and continue). In other words, you cannot exactly change the code while the app is running , but you can break it shortly and change the source

Is it possible to start an external program from the target directory when debugging?

我们两清 提交于 2020-01-03 19:40:05
问题 When debugging I need to start an external program from the target directory of a build and am wondering if it can be accomplished using relative paths. As a post-build event I have the following: IF NOT "$(ConfigurationName)"=="Debug" GOTO End :CopyExecutable copy "$(SolutionDir)\Source\Lib\MyExecutable.exe" "$(TargetDir)" :End I need to run MyExecutable.exe when I am debugging so in the debug tab for the project properties I set "Start external program" to MyExecutable.exe but get a failure

Is it possible to start an external program from the target directory when debugging?

岁酱吖の 提交于 2020-01-03 19:39:07
问题 When debugging I need to start an external program from the target directory of a build and am wondering if it can be accomplished using relative paths. As a post-build event I have the following: IF NOT "$(ConfigurationName)"=="Debug" GOTO End :CopyExecutable copy "$(SolutionDir)\Source\Lib\MyExecutable.exe" "$(TargetDir)" :End I need to run MyExecutable.exe when I am debugging so in the debug tab for the project properties I set "Start external program" to MyExecutable.exe but get a failure