I lost my laptop as well as my backup server. I am wondering if there is a
way to step through the code without the source code, but only with the dll
and pdb (which are compiled in debug mode) through vs.studio at all? I do
have these files as they are stored on a remote site for testing.
Any idea? thanks in advance.
CW 4 1802
No. If you want to source, you could try reverse engineering the assemblies
using tools like Reflector, but that will not give you the exact code that
was used to compile with, only an interpretation since the compiler does
optimization and stuff.
"C.W." <c.*@nospam.com > wrote in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. .. I lost my laptop as well as my backup server. I am wondering if there is a way to step through the code without the source code, but only with the dll and pdb (which are compiled in debug mode) through vs.studio at all? I do have these files as they are stored on a remote site for testing.
Any idea? thanks in advance.
CW
Hi Peter
I wonder how then asp.net is able to return error messages with exact line
number and the code on that line whenever it encounters an error. It must
somehow stores the data somewhere. Anyway to get to that? I know it doesn't
store comment, but it does seem that it stores source code, nevertheles.
Thanks
CW
"Peter Rilling" <pe***@nospam.r illing.net> wrote in message
news:uZ******** ******@TK2MSFTN GP03.phx.gbl... No. If you want to source, you could try reverse engineering the assemblies using tools like Reflector, but that will not give you the exact code that was used to compile with, only an interpretation since the compiler does optimization and stuff.
"C.W." <c.*@nospam.com > wrote in message news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..I lost my laptop as well as my backup server. I am wondering if there is a way to step through the code without the source code, but only with the dll and pdb (which are compiled in debug mode) through vs.studio at all? I do have these files as they are stored on a remote site for testing.
Any idea? thanks in advance.
CW
Hi CW,
My understanding of how asp.net displays the source is this:
1. asp.net catches an exception and gets a stack trace
2. the stack trace includes source file names and line numbers
3. asp.net opens the source file pointed to by the stack trace
I've noticed before that if I move the source or edit it, but don't
recompile asp.net will display the edited source.
I think the best you're going to be able to do is use Reflector to get
the code.
-David
C.W. wrote: Hi Peter
I wonder how then asp.net is able to return error messages with exact line number and the code on that line whenever it encounters an error. It must somehow stores the data somewhere. Anyway to get to that? I know it doesn't store comment, but it does seem that it stores source code, nevertheles.
Thanks
CW
FYI, ASP.NET (and also WinForms) will only return error line numbers if
your application includes the program debug file (PDB) - which a Debug
build will do
You can configure the Release build to generate a debug file (which it
doesn't by default) under Config Properties | Build | Generate
Debugging Info
Hope that helps a bit This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: aaj |
last post by:
Hi all
I have written a small app on my machine that I have passed on to a
colleague for testing.
The problem is, as soon as he steps through in debug mode and reaches
try
{
conn.Open(); <- HERE
|
by: Wysiwyg |
last post by:
Is there any way besides adding a specific debug command line argument for
the project to tell if an application is running in debug mode?
Thanks!
Bill
|
by: Maellic |
last post by:
Hi,
I'm currently updating a website written with ASP.NET. The original
programmer is overseas, there is no documentation, and files are all
over the place.
Here is a code snippet from one of the .vb file used by the
application (the entire code of the file is at the end of the post):
If EmissionsWebBLL.Security.ValidateLogin(txtUserName.Text,
|
by: Chris Durkin |
last post by:
I've got an ASP.NET website on my local box, set to compile to
bin\Debug and bin\Release in debug and release modes. Both directories
are populated with dlls, as the solution has been compiled in both
modes. When I browse to the local website, it works, but which set of
dlls is it using? What happens when I deploy to Test and there is only
a \bin\ directory, no \Debug or \Release?
I assume .NET has some path-searching rules that govern...
|
by: bob lambert |
last post by:
Help,
I have vb.net std 2002, have a windows forms app and am
debugging code behind it. I think I am viewing the
source, I set the project to debug (as opposed to
release), I start the debugger, it stops at a breakpoint.
But as I step through, it stops on what appear to be
comment lines. It seems I am not looking at the code
line for line as it is being executed (I expect comments
| |
by: MarkusR |
last post by:
I am currently using StarTeam for my source control. (Will eventual
switch to whatever the latest Visual Source Safe is going to be
called).
With debug, installers, deploy and everything the project directory
structure is a mess of files and directories
What files should be in source control (All final builds willbe done on
anothe machine)?
|
by: billelev |
last post by:
I'm a relative newbie to java and have encountered a "source not found" error when trying to debug the following section of code (for the ParseException.class).
public PaymentDates (String stlDate, String matDate, int payFreq) throws ParseException {
this.stlDate = Dates.convertStringToUSDate(stlDate);
this.matDate = Dates.convertStringToUSDate(matDate);
this.payFreq = payFreq;
configure();
}
If I click on the "Change...
|
by: Tomás Ó hÉilidhe |
last post by:
I'd post this on a gcc newsgroup but I'd be more productive talking
to the wall.
Anyway, let's say someone throws some source code at you for a
particular program and says, "Just compile it, it works fine". Now
admittedly, I tend to have a phobia of this situation because I recall
from my Windows days the numerous times I was given code that was
supposedly "good to go", but which failed to compile for some stupid
reason. Of course I...
|
by: Max |
last post by:
Is it possible for an ASP.net server (like IIS 6) to run web application
without having available the code behind forms in clear ascii? Can I provide
a compiled product to the customer, not an exe file of course, but some dll
compiled by my server ?
I'm asking that because 1. sometimes I am not happy to provide my source
code 2.customer is afraid of their internal security...
Thanks
Max
|
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...
|
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,...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
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...
| |