473,385 Members | 2,069 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Debug - Stepping through an exe without the source code - any help

Hi there,

I am looking forward to learn how to debug exe or dll files without the
source codes.

1. As i understand that back in native, people use softice or ollydbg as a
way to debug the native exe or dll in assembly language. But those software
can't cater managed exe or dll.

2. I am wondering do you know any tools i can use to debug those managed exe
or dll without the source files?

I know you can use vs.net to debug, but that is if you had the source code
with you.

3. I trying to find a similar managed debugger which can achieve similar to
Softice or Ollydbg.

maybe when you debug the exe or dll, you can step into the Intermediate
Language.

Any help please?

Thanks.
--
Regards,
Chua Wen Ching
Visit us at http://www.necoders.com
Nov 16 '05 #1
4 5097
Hi Chua
You can use winDBG for that ( what is known as the windows debugger ) .
here you are a tutorial on how to use it
http://www.codeproject.com/debug/windbg_part1.asp . if you want to get the
source code line however ( even if you don't have the source files ) you
need to have at least the debugging symbol file of your exe . in .net you
find that on the file with extension .pdb ( program debug database ) .
Hope that helps

Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC

Nov 16 '05 #2
Thanks a lot :)

But not all exe downloaded from the internet comes with a pdb files? :(

"Mohamoss" wrote:
Hi Chua
You can use winDBG for that ( what is known as the windows debugger ) .
here you are a tutorial on how to use it
http://www.codeproject.com/debug/windbg_part1.asp . if you want to get the
source code line however ( even if you don't have the source files ) you
need to have at least the debugging symbol file of your exe . in .net you
find that on the file with extension .pdb ( program debug database ) .
Hope that helps

Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC

Nov 16 '05 #3

you can still use winDBG with that but sure you can never get refernce to
souce code line with out debug file
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC

Nov 16 '05 #4
With just the binary you will need knowledge of assembly language, to create
source you will need to know how source ends up in the binary (and with all
the optimization options and the like that can be quite a tough job).

Dll's can be loaded by your own app, sometimes put an int3 in the file image
in the proper place (sometimes you can optimize some bytes away to create
the required space) to have it call your JIT debugger, intercepting lib
calls is best done with the image loaded and so on.

What's is the problem you are facing?
Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Bob Clegg | last post by:
Hi, vb.net windows app compiled in debug mode. Using dbgCLR I have associated it with the target exe. I have opened the appropriate .vb source file of the module that I want to look at. Tried...
10
by: Mike | last post by:
I know this sounds strange but I am at a loss. I am calling a simple funtion that opens a connection to a SQL Server 2000 database and executes an Insert Statement. private void...
4
by: Wal Turner | last post by:
Consider the following simple class: public class ClassA { public static string VAR = "hello"; } public void MethodA() { while(true)
10
by: Serg | last post by:
Every time i am trying to step into virtual funtion debugger tells me "there is no source code available" and disassemble window appears. If function is non virtual debugger succefully steps into...
4
by: John A Grandy | last post by:
while stepping through code i'd like to dynamically see the output of my debug.writeline() statements as they are executed ... but the debug > windows > immediate doesn't show it
4
by: Rob R. Ainscough | last post by:
I've created several DLL's that I use in other projects. I "Add Reference" to these other projects pointing to my DLL. Probelm is, I can't seem to be able to step into my DLL code (from these...
3
by: Rea | last post by:
Hey eb After installing microsoft's script debugger, I configured my default web site and internet explorer to enable script debugging. But when stepping into debugging mode in some asp page...
19
by: desktop | last post by:
When I write code I use a lot of: std::cout << "TEST1\n"; .... .... <some code> .... ....
6
by: =?Utf-8?B?RmFiaWFu?= | last post by:
Hi, I have a pretty complicated program which consists of the following basic modules: 1. a C# application 2. a C++/CLI application which is controlled by the C# app via IPC remoting 3. lots...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.