MFGG Forums
  • Home
  • Members
  • Help
  • Search
MFGG Main Site MFGG Forums MFGG Developer Discussion v
« Previous 1 … 12 13 14 15 16 Next »
Debug Mode Gamemaker, what is it?
MFGG Forums MFGG Developer Discussion v
« Previous 1 … 12 13 14 15 16 Next »
Debug Mode Gamemaker, what is it?
MFGG Forums MFGG Developer Discussion v
« Previous 1 … 12 13 14 15 16 Next »
Debug Mode Gamemaker, what is it?
Mark All Posts Read Today's Posts

Debug Mode Gamemaker, what is it?
Canada Mariotroid
Blooper
Members
Submitter Super Reviewer Iso Collab Contributor Sprite Comp Top 5 (3) Minigame Comp Winner Minigame Comp Runner-Up (4) Minigame Comp Top 5 (5) Music Comp Runner-Up Drawing Comp Runner-Up (4) Drawing Comp Top 5 (5) Skull Badge NCFC Contributor (2) Secret Santa
#1
12-17-2017, 09:17 PM
I read the online instructions on the debug mode of gamemaker but I still don' understand it's use? Can you edit variables in game or change the code in any way? Or do you just see the values of the variables?

  ↳
United States VinnyVideo
Can't have an avatar without a Shy-Guy
Site Developer
Main Site Moderator Site Developer/Webmasters Wiki SysOp Big Help Submitter Super Reviewer (2) Wiki Contributor Sprite Comp Runner-Up Minigame Comp Winner Minigame Comp Runner-Up Minigame Comp Top 5 (3) Music Comp Winner Music Comp Runner-Up Music Comp Top 5 (2) Drawing Comp Top 5 Game of the Month Winner NCFC Contributor (4) Secret Santa (5) MFGG 17th Anniversary MFGG 18th Anniversary MFGG 19th Anniversary Ye Olde MFGGe Retro Game Jam Participant MFGG Awards 2010 Winner MFGG Awards 2011 Winner MFGG Awards 2012 Winner MFGG Awards 2013 Winner MFGG Awards 2014 Winner MFGG Awards 2015 Winner MFGG Awards 2017 Winner (3) MFGG Awards 2019 Winner MFGG Awards 2024 Winner
#2
12-17-2017, 09:40 PM (This post was last modified: 12-17-2017, 09:41 PM by VinnyVideo.)
A good question. Typically I use Debug Mode to watch a specific variable (whether a global variable or an object's local variable) and see what events cause it to change. For example, suppose I'm making a boss, but the boss can't be defeated for some reason. I might watch the "hp" variable for the boss and see which events cause hp to go down. This helps me narrow down the problem.

Debug Mode also lets you modify variables in game using the Execute Code dialog box. For example, if I'm tinkering with my code in Cheerwine Deluxe 3, I could type "global.debug = 1" into the Execute Code dialog box, and that would enable the game's special debug mode. (global.debug is just a variable I made for testing things in CD3 - it's not something built in to GM.)
Course clear! You got a card.

[Image: CourseClear.gif]


  ↳
Canada Mariotroid
Blooper
Members
#3
12-17-2017, 10:38 PM
Ok thanks still learning the ins and outs after years of programming. Btw Vinny, I emailed you about giving me my missing badges?

  ↳
United States VinnyVideo
Can't have an avatar without a Shy-Guy
Site Developer
#4
12-17-2017, 11:15 PM
@Mariotroid I saw your e-mail, and I PM'd a reply to you. Did you get it?
Course clear! You got a card.

[Image: CourseClear.gif]


  ↳
Antarctica bigpotato
Fella
Members
Submitter Iso Collab Contributor (2) Sprite Comp Winner (2) Sprite Comp Runner-Up (2) Sprite Comp Top 5 (2) Minigame Comp Top 5 Music Comp Runner-Up Drawing Comp Top 5 Super Comp Top 5 Secret Santa Holiday Tree (2) MFGG 19th Anniversary MFGG Awards 2020 Winner
#5
12-18-2017, 10:19 PM
In addition, I often use it to run through my code line by line to find the source of a bug with multiple possible causes.
[Image: bird.png]

  ↳
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



  • View a Printable Version
Forum Jump:

Mario Fan Games Galaxy - Powered by MyBB | MFGG Staff | Contact Us

Linear Mode
Threaded Mode