R
R
Rodrijjke2019-09-05 22:42:53
.NET
Rodrijjke, 2019-09-05 22:42:53

How to determine where in the source is the executable C# code?

There are C# sources. You need to get information about exactly where the code currently being executed by the process is located in them. That is, get a string, a method, a class for each thread. Does the CLR contain this information? If this is possible, are there ready-made solutions?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
freeExec, 2019-09-06
@Rodrijjke

Yes, in the place with the executable file during compilation, you can create debugging information *.pdb(for the VS compiler), and the answer to your question will be stored in it. How to gut it, you are looking for it yourself.

B
BasiC2k, 2019-09-06
@BasiC2k

When running from under the IDE, press pause. The execution will stop, and the IDE will highlight the line where the code execution stopped.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question