Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Debug library for .net to target native programs?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Chris12
Expert Cheater
Reputation: 1

Joined: 27 Apr 2012
Posts: 103

PostPosted: Mon May 12, 2014 1:10 am    Post subject: Debug library for .net to target native programs? Reply with quote

Hi,
I'm searching for a library that I can use in .NET that can debug NATIVE processes. For clr processes there's microsofts own .net debugger, but I have not found a debugger to debug native apps from C#.

It would be extra nice if it could debug a process using a VEH debugger like ce has.

Since I couldn't find anything with google so I don't think there are any libraries like that. I hope someone here knows of one Smile
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Mon May 12, 2014 1:19 pm    Post subject: Reply with quote

You can use all the same debugging API to debug a process from .NET
For example, see:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms681675(v=vs.85).aspx

You can do the same in .NET just by importing the needed API calls.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
ProjectEz
Newbie cheater
Reputation: 0

Joined: 03 Dec 2011
Posts: 18
Location: Phlippines

PostPosted: Tue May 13, 2014 3:51 am    Post subject: Reply with quote

wow, thank you for this thread post, i think i found what i want to do Smile thanks~
please if possible, can we have a talk about this?
im also doing a debugger for C# that has the same process as VEH debugger,
please add me at facebook, fb(dot)com/kai.ecollidex
Back to top
View user's profile Send private message
Hatschi
Master Cheater
Reputation: 2

Joined: 28 Jan 2010
Posts: 327

PostPosted: Tue May 13, 2014 6:52 am    Post subject: Reply with quote

There is no possible way. You cannot create a debugger in .NET for the same reason you cannot create a booting system in .NET

It's a managed programming language that is limited by having no access to low level languages.

The only way to achieve your goal is to write a debugger in unmanaged code (C++) and create a managed wrapper for this. But that is still NOT a debugger in .NET

Importing API calls is nearly the same as creating a wrapper.
Back to top
View user's profile Send private message
ProjectEz
Newbie cheater
Reputation: 0

Joined: 03 Dec 2011
Posts: 18
Location: Phlippines

PostPosted: Tue May 13, 2014 11:02 am    Post subject: Reply with quote

@hatschi
wow great info, now i know where to stop,
btw, for me, as long as I can do the same thing on C#, it ok with me not having a library, hope i can get it work Smile
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Tue May 13, 2014 2:07 pm    Post subject: Reply with quote

Hatschi wrote:
There is no possible way. You cannot create a debugger in .NET for the same reason you cannot create a booting system in .NET

It's a managed programming language that is limited by having no access to low level languages.

The only way to achieve your goal is to write a debugger in unmanaged code (C++) and create a managed wrapper for this. But that is still NOT a debugger in .NET

Importing API calls is nearly the same as creating a wrapper.


Uh what..? You can definitely create a debugger in .NET..

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Chris12
Expert Cheater
Reputation: 1

Joined: 27 Apr 2012
Posts: 103

PostPosted: Tue May 13, 2014 8:31 pm    Post subject: Reply with quote

Hatschi wrote:
There is no possible way. You cannot create a debugger in .NET for the same reason you cannot create a booting system in .NET

It's a managed programming language that is limited by having no access to low level languages.

The only way to achieve your goal is to write a debugger in unmanaged code (C++) and create a managed wrapper for this. But that is still NOT a debugger in .NET

Importing API calls is nearly the same as creating a wrapper.


Lol, I don't know where you got that from, but most part of that post is wrong.

I already finished writing my own native debugger for .net using the standard windows functions (was finished before starting this topic). So now that I need the VEH debugger I had hoped someone else already did all the work to implement it in .NET Wink

Well ok now that I know that no one did that yet I can start porting CEs VEH debugger to .NET...

Thanks for the info atom0s!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites