Posts

Showing posts from July, 2016

DOS: Concatenate binary files

copy /b *.vob combined.vob copy /b file.bin+file2.bin combined.bin

Visual Studio 2015: Debug a Release Build

https://msdn.microsoft.com/en-us/library/fsk896zz.aspx You can debug a release build of an application. To debug a release build Open the  Property Pages  dialog box for the project. For details, see  Working with Project Properties . Click the  C/C++  node. Set  Debug Information Format  to  C7 compatible (/Z7)  or  Program Database (/Zi) . Expand  Linker  and click the  General  node. Set  Enable Incremental Linking  to  No (/INCREMENTAL:NO) . Select the  Debugging  node. Set  Generate Debug Info  to  Yes (/DEBUG) . Select the  Optimization  node. Set  References  to  /OPT:REF  and  Enable COMDAT Folding  to  /OPT:ICF . You can now debug your release build application. To find a problem, step through the code (or use Just-In-Time debugging) until you find where the failure occurs, and then determine the incorrect parameters or code. If an application works in a debug build, but fails in a release build, one of the compiler optimizations may be e

Git: Create A Patch Without A Commit

"create a patch without commit", can be also solved in this way: git diff > my_patch.txt Later you can apply this patch, also without a commit, by: git apply my_patch.txt

Visual Studio 2015: Using The Remote Debugger

Image
Intro Most of this write up just summarizes what's talked about in this video:  Visual Studio - How to Attach Debugger to a Remote Server This Microsoft web page documents how to install and run the remote debugger:  VS Remote Debugging Installation And Running Prerequisites The Visual Studio Remote Debugger for 2015 is called  rtools_setup_x64.exe To properly debug on a remote machine, you will need debug symbols for your code. Install And Run The Remote Debugger Find  rtools_setup_x64.exe , and install it on the remote server. After install, go to the  Start  menu and run  Remote Debugger . You may have to configure the firewall, this can be done through the  Remote Debugging Configuration  dialog that the  Remote Debugger  launches.  Allow everything. Once the remote debugger is running, go to the  Tools  menu and select  Options . The port will probably be 4020, change this to  4016 .  I could not get 4020 to work. Tick  No Authentication  and  Allow any use