Results 1 to 8 of 8
  1. #1
    warmslime is offline Advanced Beginner
    Windows 10 Access 2013
    Join Date
    Jan 2016
    Posts
    49

    Enterring debug mode on computer without Break or Fn key?

    Is it possible or should I just use another keyboard? The on-screen keyboard doesn't work...



    NVM, fixed, this helped me (delete this thread if you want)
    http://en.community.dell.com/support...518/t/19430669

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    I was going to suggest using debug.assert to stop the code when certain conditions are met

    https://support.microsoft.com/en-us/kb/161153

  3. #3
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    Quote Originally Posted by Ajax View Post
    I was going to suggest using debug.assert to stop the code when certain conditions are met

    https://support.microsoft.com/en-us/kb/161153
    I like that explanation.

  4. #4
    warmslime is offline Advanced Beginner
    Windows 10 Access 2013
    Join Date
    Jan 2016
    Posts
    49
    This doesn't help me when I don't know where exactly the error occurs! (ie when using error handling with custom messageboxes)

  5. #5
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    it's not clear exactly what your issue is - if you are trying to debug then use option explicit in all your modules and use error handling. Must admit I've not tried developing anything using just a touch screen, so perhaps you do need to plug in a keyborard

  6. #6
    warmslime is offline Advanced Beginner
    Windows 10 Access 2013
    Join Date
    Jan 2016
    Posts
    49
    Quote Originally Posted by Ajax View Post
    it's not clear exactly what your issue is - if you are trying to debug then use option explicit in all your modules and use error handling. Must admit I've not tried developing anything using just a touch screen, so perhaps you do need to plug in a keyborard
    This is exactly what I'm doing. I use option explicit and I use error handling. This results in custom message boxes popping up in stead of the standard Visual Basic popup (the one with the debug button). So I can't see where the code failed without ctrl+break. Also I'm not using a touch screen, only a keyboard that doesn't have a Break button (I guess I didn't really mention it in the OP).

  7. #7
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    so temporarily disable your 'catchall' error handling, and/or set a break point and step through the code

  8. #8
    warmslime is offline Advanced Beginner
    Windows 10 Access 2013
    Join Date
    Jan 2016
    Posts
    49
    Quote Originally Posted by Ajax View Post
    so temporarily disable your 'catchall' error handling, and/or set a break point and step through the code
    Yes but I'm working with an example database that throws the same error messages on multiple parts of the code so I don't know which one called it. So pressing ctrl+break is infinitely easier. I was able to remap the key using a registry edit and I use ctrl+f10 and it works now.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 8
    Last Post: 03-14-2016, 03:23 PM
  2. Code runs in break/debug mode but not in normal mode
    By hansendl in forum Programming
    Replies: 2
    Last Post: 10-15-2014, 07:23 AM
  3. Replies: 4
    Last Post: 11-26-2013, 10:47 AM
  4. Replies: 4
    Last Post: 11-29-2012, 12:45 AM
  5. Replies: 5
    Last Post: 08-29-2011, 04:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums