debugging

!heap failed. Invalid type information for ntdll!_HEAP_ENTRY

丶灬走出姿态 提交于 2020-01-03 11:02:21
问题 I'm trying to dump heap information from full dump memory file sitting on Windows Server 2003 SP2 x86. Dump was created for 32-bit mixed (native/clr) application which was running on Windows Server 2003 SP2 x64 machine. From the following windbg log I understand that loaded ntdll.dll image is incorrect and does not correspond to ntdll.pdb symbols. I have tried to specify the location to ntdll.dll from the target machine but windbg still shows that the module is loaded from the standard

Stepping through Android code on the phone - big line number discrepancy

柔情痞子 提交于 2020-01-03 11:01:56
问题 I am trying to debug some code related to ListView on Samsung Captivate (Galaxy S). I put breakpoint somewhere in my code and when it stops I go back on the stack few frames to the ListView source. Now, I can expect that there would be some mismatch as my phone probably has slightly different version of Android classes than source code that I use in my IDE. However, I get a discrepancy of over 300 lines. I don't see this discrepancy on emulator. More over, stack trace shows ListView line

WebStorm - debugger terminates a process on breakpoints. Process finished with exit code -1073741510

若如初见. 提交于 2020-01-03 09:08:21
问题 Today, my WebStorm started to behave weird. When I stop it on breakpoint - process falls. It occurs at any breakpoint. I work with nodejs javascript. I tried to record gif, but quality is very bad (sorry for that), however, you can imagine the problem if you look at the gif. As you can see here: debugger caught a breakpoint, but then, process just stopped. At the bottom of the webstorm it is written: "Process finished with exit code -1073741510 (0xC000013A: interrupted by Ctrl+C)". Everything

Can I prevent the CLR from optimizing away debugging information?

旧巷老猫 提交于 2020-01-03 09:07:12
问题 I've written an abstract base class for unit tests that sets up just enough environment for our tests to run. The class exposes some of the runtime environment bits as properties whose types vary test by test (the property types are type arguments specified in the inheriting, concrete test class). This is all well and good, except a co-worker noticed that he can't view any of the class' properties in the debugger. Turns out the reason is that he had no fields defined in his inheriting class,

Visual Studio 2015 Cordova Tools - When Launching Ripple An error “scriptedsandbox64.exe has stopped working” Appears

半城伤御伤魂 提交于 2020-01-03 08:45:11
问题 Whenever I launch the ripple debugger, the process scriptedsandbox64.exe stops working and both the DOM explorer and the debugging tools show a huge refresh button, clicking on said button only results in the error appearing again. 回答1: The problem was that Internet Explorer version was 10, the cordova tools need version 11 to work properly, upgrading to v11 solves the issue. 回答2: I had the same issue and it works when installing IE11 来源: https://stackoverflow.com/questions/31973058/visual

Unable to debug .NET framework code in VS2010

五迷三道 提交于 2020-01-03 08:38:52
问题 I'm trying to debug .NET code with public available symbols. I setup according instructions: In Tools-> Options -> Debug I checked "Enable .NET framework source stepping", disabled "Enable just my Code". In Tools-> Options -> Debug -> Symbols Load All Symbols. I checked a lot of *.pdb's appeared in this folder. In ASP.NET MVC application I place breakpoint into Application_Start() method. After debugger run I see call stack, see all methods in call stack (System.Web.dll). But if I try to

Is it possible to run commands in IPython with debugging?

时光毁灭记忆、已成空白 提交于 2020-01-03 07:25:09
问题 Here are my actions in IPython: > import my_module > import ipdb Now, my module lacks any executable code, it only declares classes. So I want to make a statement: > g = my_module.Graph() > f = open('test.osm') > g.from_osm(f) I want to put a breakpoint inside Graph.from_osm, without editing the file. I don't want to put the latter lines into the file and to do python -m ipdb ... . I just want to run commands and debug. Is this possible? added: I see, it's possible to %run -d script_name or >

How do I navigate to original TypeScript file from JavaScript stacktrace in WebStorm with Node?

旧巷老猫 提交于 2020-01-03 07:22:50
问题 I'm new to TypeScript. On a Mac I'm using WebStorm 2016.2.4 for Node with TypeScript 2.0. Interactive debugging works fine using generated maps, but runtime stack trace links point to JavaScript files, not original TypeScript files. Is this normal and expected? Is there a WebStorm feature I'm missing that can translate those links to the original TypeScript file and line or is this just something TypeScript developers must suffer with? 回答1: I get stack traces using the TypeScript source file

Unable to attach to created process with Visual Studio 2005

心不动则不痛 提交于 2020-01-03 06:21:44
问题 I'm having problems attaching to a process spawned from one of my own processes. When I attempt to attach to the process using Visual Studio 2005 (Debug -> Attach to process) I receive the error message: "Unable to attach to the process. The system cannot find the file specified." In my program, I spawned the process that I later want to attach to using the command BOOL res = CreateProcess(exe, cmdLine, NULL, NULL, FALSE, 0, NULL, workingDir, &startupInfo, &procInfo); If I manually start the

Error in df(X0) : argument “df1” is missing, with no default--tracing R code

末鹿安然 提交于 2020-01-03 06:19:12
问题 I have written two gradient descent functions and in the second one I just have the alpha parameter and the initial alpha is different. I receive a weird error and was unable to trace the reason for it. Here's the code: k=19000 rho.prime<-function(t,k) ifelse (abs(t)<=k,2*t,(2*k*sign(t))) dMMSE <- function(b,k=19000, y=farmland$farm, x=farmland$land){ n = length(y) a=0 d=0 for (i in 1:n) { a = a + rho.prime(y[i]-b[1]-b[2]*x[i],k) d = d + x[i]*rho.prime(y[i]-b[1]-b[2]*x[i],k) } a <- (-a/n) d <