In Visual Studio, is it possible to edit assembly language code while stepping through each statement (so that statements in the program can be modified while the program is running?) It would be useful to modify statements in a program while the program is running (for debugging purposes), but I'm not sure if this is possible yet.
Edit assembly language code in Visual Studio while stepping through each statement
864 Views Asked by Anderson Green At
1
There are 1 best solutions below
Related Questions in VISUAL-STUDIO-2010
- how do i stop system stack overflow in visual basic?
- How to remove shortcut/alias to a .cpp and .h file from another project in Visual Studio 2019?
- VS2010 Macro/Environment issue causing a HResult: 0x80070057 (E_INVALIDARG) exception
- DevOps 2022 Server not connecting on VS 2012 and VS 2010
- How can i make a prefab instantiate another prefab?
- VS2010 Installer Project Custom Action to run an EXE is failing
- I commit from my Microsoft Visual Studio, however, I am now seeing that i now have two versions of two files
- Is there a way to make AfxMessageBox() take focus from another program?
- in visual studio 2017 was use a model i made but i get the error Read_POLS_Chunk(): Error reading a polygon not 1-3 vertices
- C++ vector subscript out of range : Monotone Interpolation
- c language, When decimal digit of %g in printf equal to 0.5, and length is more than 6, it is not upper ceil, why?
- IloEnv env ; don't work in the dbug and it can access to it
- Create a kml for a Google Earth tree view item through vb-net
- Error in RDLC REPORT in vs2010- An error occurred during local report processing, Object reference not set to an object instance
- This AVD's configuration is missing a kernel file! Visual Studio Code
Related Questions in ASSEMBLY
- Is there some way to use printf to print a horizontal list of decrementing hex digits in NASM assembly on Linux
- How to call a C language function from x86 assembly code?
- Binary Bomb Phase 2 - Decoding Assembly
- AVR Assembly Clock Cycle
- Understanding the differences between mov and lea instructions in x86 assembly
- ARM Assembly code is not executing in Vitis IDE
- Which version of ARM does the M1 chip run on?
- Why would %rbp not be equal to the value of %rsp, which is 0x28?
- Move immediate 8-bit value into RSI, RDI, RSP or RBP
- Unable to run get .exe file from assembly NASM
- DOSbox automatically freezes and crashes without any prompt warnings
- Load function written in amd64 assembly into memory and call it
- link.exe unresolved external symbol _mainCRTStartup
- x86 Wrote a boot loader that prints a message to the screen but the characters are completely different to what I expected
- running an imf file using dosbox in parallel to a game
Related Questions in X86
- How to call a C language function from x86 assembly code?
- the difference between two style of inline ASM
- Understanding the differences between mov and lea instructions in x86 assembly
- ARM Assembly code is not executing in Vitis IDE
- x86 - compare numbers and push the result onto the stack
- Seeking for the the method for adding the DL (data register) value to DX register
- link.exe unresolved external symbol _mainCRTStartup
- x86 Wrote a boot loader that prints a message to the screen but the characters are completely different to what I expected
- How does CPU tell between MMIO(Memory Mapped IO) and normal memory access in x86 architecture
- Why do register arg values need to be re-assigned in NASM after an int 0x80 system call?
- Why does LLVM-MCA measure an execution stall?
- Why does shr eax, 32 not do anything?
- Evaluating this in Assembly (A % B) % (C % D)
- Understanding throughput of simd sum implementation x86
- Making portable execution errors
Related Questions in LIVECODING
- Unreal Engine5 LiveCoding causes error `(missing LinkerPath field)`
- SuperCollider error: ServerOptions.memSize not understood
- Using Different Keys in the FoxDot live coding environment for Python
- replaying code for a hands on code presentation
- What's the best of live-calling quil functions?
- Live coding in AspNet Core
- CSS live editing - Play framework
- How to Match Parenthesis to Parse a S-Expression?
- Replacement only between begin{document} and \end{document}
- Highlight Before and after the characters --
- How can i get content from scrolling field and place it into in an array in Live code
- Play framework - access assets on runtime
- How to use paperjs in ace live editor?
- Edit assembly language code in Visual Studio while stepping through each statement
- Is it possible to implement automatic error highlighting for Python?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can modify the source code, but it doesn't get reassembled to produce a new binary during your debugging session. The debugger will tell you the "source no longer matches the code" but you can still step. Your display may be confusing because, well, the source code no longer matches the object code :-} I often add comments to instructions or in blank lines, which gets me the complaint, but you can still single-step and see the right source lines in this special case.
I think you can manually modify the memory containing the instruction you want to patch. I've not ever bothered to do this; its easier to set a breakpoint where I'm at, re-assemble, and then run till the breakpoint.
You can modify all the registers and data memory pretty easily (actually you have to use this to modify the code memory, I think!).
A really useful thing to do is "Set Next Statement" to set the PC back to a somewhat earlier place in the code; you can often then step forward to point of failure, if the registers and memory aren't changed. (put cursor in your source or disassembly window, click on a line, then right-click "Set Next Statement")