473,769 Members | 7,408 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5139
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
1020
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 setting a breakpoint in this module but it was ignored by the exe I set a stop statement into the code and that compiled exe stops ok but I can't see how to get the source code display to show where the program is . If I keep single stepping it...
10
3399
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 AddMinimunWageStipen(string payrollid,double amount) { System.Data.SqlClient.SqlConnection cn = null; System.Data.SqlClient.SqlCommand cm = null;
4
2028
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
1348
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 it and shows source code. Is there any compiler key that can fix it? Please help. Thanks in adv.
4
1905
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
10600
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 other projects) -- I've tried adding the source code project (that was used to build the DLL) into my current solution, but I still can't seem to step into the code of my DLL. Any suggestion? I must be missing something simple?
3
2266
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 i can't see the server side code of it (<%%> ). Also in the debugger's Running documents window, i only see one branch of documents, descending from the internet explorer node. No trace there for the iis side of things..
19
2054
by: desktop | last post by:
When I write code I use a lot of: std::cout << "TEST1\n"; .... .... <some code> .... ....
6
6580
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 of native code which is wrapped by the managed C++/CLI code A remark to this complicated structure: We are controlling hardware via
0
9589
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10214
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9865
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7410
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5304
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3963
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3563
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.