breakpoints

“Condition for a breakpoint failed to execute… 'variable' not declared. It may be inaccessible…” Why?

你离开我真会死。 提交于 2019-12-10 14:58:34
问题 Related questions: Unable to debug managed code using visual studio 2013 ("Cannot evaluate expression" error - am using debug build) (Note that VS 2012 works) VS2013 Debugger + Entity Framework: "runtime has refused to evaluate the expression", crashes I am facing a problem with conditional breakpoints in Visual Studio 2013 Professional. The breakpoint condition is referring to a local variable ( tagString ), which is declared and initialized in the line of code immediately preceding the

gdb: break when a particular object is altered

落爺英雄遲暮 提交于 2019-12-10 11:21:41
问题 I have an object defined in c++ with a pointer to it used in various functions and files throughout the project. I am having an issue with the data being updated, so I want to debug it to see what is happening. Ideally, I want to break every time the object is accessed. however, watch requires a specific memory address. So, for example, if I have: class data{ public: int a; int b; }; then gdb will only break when a is altered, since the pointer to data is pointed at a , but not when b is

Set Breakpoint at Entry point fails (GDB)

China☆狼群 提交于 2019-12-10 10:56:01
问题 I'm currently practicing some RE w/ GDB and am having issues simply stopping the run/start on the first/second instruction. I am new to GDB/RE and have a limited knowledge of some of GDB's inner workings. So far when I open the program I have done: (gdb) set disassembly-flavor intel (gdb) file /path/to/binary (gdb) info file Symbols from "/path/to/binary". Local exec file: `/path/to/binary', file type elf32-i386. Entry point: 0x8048450 . . . (gdb) b *0x8048450 (gdb) start Temporary breakpoint

Memory location addressing in ASM

徘徊边缘 提交于 2019-12-10 10:24:07
问题 I'm trying to write self modifying asm code. At some point, I try the following : (NASM compiler) start_of_code: ; ... snip ... cmp byte [rax], 0x66 jae above_label add byte[rax], 0x20 ; ... snip ... above_label: inc rax loop start_of_code gdb shows the following values at start x/8xb $rax : 0x12 0x12 0x11 0x20 0x18 0xfe 0x83 0x9b The first two iterations are ok, the 0x12 are compared as I expect and no jump take place. With 0x11 however, cmp sets the OF flag instead of the CF and jae is

How to edit swift error breakpoint?

*爱你&永不变心* 提交于 2019-12-10 10:07:21
问题 I want to set Swift error breakpoint to handle Swift Error of ErrorType in swift. But i am not getting What to set as Type value in BreakPoint ? 回答1: If you just create a Swift error breakpoint, it breaks on anything that conforms to ErrorType. If you put something in Type, it'll only break when that type is thrown. In the following: enum MyError: ErrorType { case AnError } enum MyOtherError: ErrorType { case AnotherError } public func throwAnError() { do { throw MyOtherError.AnotherError }

How can I setup an LLDB breakpoint firing every 10th time?

末鹿安然 提交于 2019-12-10 06:03:23
问题 To debug the values of high frequency timers or sensors it would be useful to configure a breakpoint that only fires every x times. What's the best way to accomplish this? I tried the "Ignore x times before stopping" option in Xcode but that only works for the first time. Can I reset this counter using an LLDB command? 回答1: You can reset the ignore counter at any time with: (lldb) break modify -i <NEW_VALUE> <BKPT_SPECIFICATION> Note, a breakpoint which doesn't satisfy its "ignore count" is

How to export/import breakpoints on VS 2013?

二次信任 提交于 2019-12-10 03:54:10
问题 I'd like to import/export breakpoints which I'm used to export(xml format) from VS 2008/2010, but can't load it from VS2013. I remember once I upgraded to VS2013 and converted to VS2013 solution from VS2008 environment, breakpoints worked fine. I think I could save one time in VS2013, and tried to load it once I delete them all by accident. Somehow I got the error "Unable to import breakpoints". even I add breakpoints, and tried to export them but got the error "Unable to export breakpoints"

Partial class debugging

爱⌒轻易说出口 提交于 2019-12-10 02:51:58
问题 I have created a partial class for my xsd auto generated class. The problem is in debugging this partial class. Breakpoint are not recognized or the compiler doesn't break at the breakpoints set in the partial class. // Autogenerated class by xsd.exe public partial class Class1 { private Class1Brand[] brandField; private string Class1guidField; ..... } // Debug Part - probably in a different file public partial class Class1 { public static Validity setValidity(Validity validity) { // ********

Breakpoint in ASP.NET MVC Razor view will not be hit. No symbols have been loaded for this document

折月煮酒 提交于 2019-12-10 02:51:55
问题 I can't get a breakpoint in a Razor view to be hit in Visual Studio 2013 while debugging in IIS Express. This is the view and unreachable breakpoint: Looking at the modules I see that the latest PDB file has been loaded: And the folder C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\53ff8402\967c7053\assembly\dl3\f3c59a34\6698ffde_b452cf01 has the latest version of the DLL and PDF files: ITVizion.VizionLogs.WeeklyLogs.Web.DLL ITVizion.VizionLogs.WeeklyLogs.Web.PDB I

Unreachable breakpoint at execut(able/ing) code

久未见 提交于 2019-12-09 19:40:09
问题 I've got two DLLs, one in written in native C++ and the other in C++/CLI. The former is injected into a process, and at a later point in time, loads the latter. While debugging, I noticed that the native DLL's breakpoints were functioning correctly while the other's weren't, even though its code was being executed. The breakpoints showed this message: This breakpoint will not be hit. No executable code associated with this line. Possible causes include: preprocessor directives or compiler