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 


Self Sub Printout

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Trow
Grandmaster Cheater
Reputation: 2

Joined: 17 Aug 2006
Posts: 957

PostPosted: Wed Jul 18, 2007 8:50 am    Post subject: Self Sub Printout Reply with quote



Does any of you know a programming language that supports "showing what code it is running at runtime" without actually saving the source code elsewhere for the program to read it off beforehand?

If so, how do you achieve this "debugging effect" with VB6?

_________________
Get kidnapped often.


Last edited by Trow on Wed Jul 18, 2007 9:13 am; edited 1 time in total
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Wed Jul 18, 2007 8:52 am    Post subject: Reply with quote

I'm confused by what you mean. Make it display its source code while running, or having the user input a source code and clicking the "Command1" button and it edits the progs source?
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Trow
Grandmaster Cheater
Reputation: 2

Joined: 17 Aug 2006
Posts: 957

PostPosted: Wed Jul 18, 2007 9:12 am    Post subject: Reply with quote

Program that displays the code it is running.
_________________
Get kidnapped often.
Back to top
View user's profile Send private message
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Wed Jul 18, 2007 9:32 am    Post subject: Reply with quote

say your doing a command click

he wants the code thats in the procedure of that click to display in a memo

_________________
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Wed Jul 18, 2007 9:43 am    Post subject: Reply with quote

Hmmm...make a text file with easch command written into it and then have your program read from the right text file for a certain command.

i.e Button1Click.txt -> procedure TForm1.Button1Click(Sender: TObject);
begin

end;

Edit:

Sorry, didn't see that you didn't want the source code already written in another file to be read from. T.T[/quote]

_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Wed Jul 18, 2007 10:01 am    Post subject: Reply with quote

what you want is a debugger, comes with most IDEs in most any language.
Back to top
View user's profile Send private message
Trow
Grandmaster Cheater
Reputation: 2

Joined: 17 Aug 2006
Posts: 957

PostPosted: Wed Jul 18, 2007 7:47 pm    Post subject: Reply with quote

appalsap wrote:
what you want is a debugger, comes with most IDEs in most any language.


im doing that for the heck of it, so im not expecting anyone running this program to have an IDE with them too? and that's also the reason why im showing the stuff in a text box instead of telling people to look into the source code because i am only giving them an EXE which, hopefully, will display its own source.

_________________
Get kidnapped often.
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Wed Jul 18, 2007 7:55 pm    Post subject: Reply with quote

e: I'm kind of dopey and misread.

Why would you want it to crap out a controls source? Just distribute the actual program source.
Back to top
View user's profile Send private message
Trow
Grandmaster Cheater
Reputation: 2

Joined: 17 Aug 2006
Posts: 957

PostPosted: Wed Jul 18, 2007 8:47 pm    Post subject: Reply with quote

For debug reasons. And since I debug (at school) I don't think an IDE / a debugger is available at that moment.
_________________
Get kidnapped often.
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Wed Jul 18, 2007 9:14 pm    Post subject: Reply with quote

... how would it merely showing the code be useful for debugging purposes?
Back to top
View user's profile Send private message
Trow
Grandmaster Cheater
Reputation: 2

Joined: 17 Aug 2006
Posts: 957

PostPosted: Wed Jul 18, 2007 9:20 pm    Post subject: Reply with quote

slovach wrote:
... how would it merely showing the code be useful for debugging purposes?


well, im not debugging a program as simple as the one in the screenshot, see... im trying to make a program which logs all the subs and functions it goes through. sometimes its hundreds of subs, sometimes its thousands of subs in a single button click, and its troublesome to emulate this sort of thing at home after getting the error at school and not having the tools for seeing what went wrong.

(is that reasonable for you?)

_________________
Get kidnapped often.
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