PC Review


Reply
Thread Tools Rate Thread

debug not working

 
 
JimRich
Guest
Posts: n/a
 
      2nd Oct 2009
I have some code that I am trying to fix and wanted to step through the code.
When i clicked on "Step Into" nothing happend. No other code is running.
The cursur is inside the sub routine. I have other code that is being
exicuted when i just run it but even with a breakpoint set it does not stop.
Is there a way to turn "Debug" back on?
 
Reply With Quote
 
 
 
 
Joel
Guest
Posts: n/a
 
      2nd Oct 2009
Your top level subroutine or function probably has parameters or the
parameter list has an error. first try setting the Brek option in VBA as
follows from VBA menu

tools - Options - general - Break On Error

If you have a parameter list at your top level you can write a subrouting to
call your code. Define the parameter list to match you module.


Sub Test

Dim Param1 as Variant
Dim Param2 as Variant
Dim Param3 as Variant
Call Yourcode(param1, param2, param3)

end Sub



"JimRich" wrote:

> I have some code that I am trying to fix and wanted to step through the code.
> When i clicked on "Step Into" nothing happend. No other code is running.
> The cursur is inside the sub routine. I have other code that is being
> exicuted when i just run it but even with a breakpoint set it does not stop.
> Is there a way to turn "Debug" back on?

 
Reply With Quote
 
Jacob Skaria
Guest
Posts: n/a
 
      2nd Oct 2009
--Do you have any arguments to be passed for this sub routine?
--Make sure you are within a module..
--When you say you have other code executed..do you mean at the same time?
is that in the same module or else where?

If this post helps click Yes
---------------
Jacob Skaria


"JimRich" wrote:

> I have some code that I am trying to fix and wanted to step through the code.
> When i clicked on "Step Into" nothing happend. No other code is running.
> The cursur is inside the sub routine. I have other code that is being
> exicuted when i just run it but even with a breakpoint set it does not stop.
> Is there a way to turn "Debug" back on?

 
Reply With Quote
 
JimRich
Guest
Posts: n/a
 
      3rd Oct 2009
No arguments.
I am within the module that I want to test.
No, not at the same time, just mean that I have modules that work like they
are supposed to. Event code, Module code. Can't use debug in any of it.
Breakpoints do not stop execution.
Some in the same module.

"Jacob Skaria" wrote:

> --Do you have any arguments to be passed for this sub routine?
> --Make sure you are within a module..
> --When you say you have other code executed..do you mean at the same time?
> is that in the same module or else where?
>
> If this post helps click Yes
> ---------------
> Jacob Skaria
>
>
> "JimRich" wrote:
>
> > I have some code that I am trying to fix and wanted to step through the code.
> > When i clicked on "Step Into" nothing happend. No other code is running.
> > The cursur is inside the sub routine. I have other code that is being
> > exicuted when i just run it but even with a breakpoint set it does not stop.
> > Is there a way to turn "Debug" back on?

 
Reply With Quote
 
JimRich
Guest
Posts: n/a
 
      3rd Oct 2009
The code I am trying to run is a deactivate event that closes a userform when
the active sheet is changed. Simple code, one line. Deactivate event does
not run. The form is not closed. Debug.print does not display in the
immediate window. Nothing happens when the sheet is changed. Everything is
spelled correctly. Even if it wasn't I would get an error message and a
highlight on the line that was wrong.
I tried rebooting the computer.

"Jacob Skaria" wrote:

> --Do you have any arguments to be passed for this sub routine?
> --Make sure you are within a module..
> --When you say you have other code executed..do you mean at the same time?
> is that in the same module or else where?
>
> If this post helps click Yes
> ---------------
> Jacob Skaria
>
>
> "JimRich" wrote:
>
> > I have some code that I am trying to fix and wanted to step through the code.
> > When i clicked on "Step Into" nothing happend. No other code is running.
> > The cursur is inside the sub routine. I have other code that is being
> > exicuted when i just run it but even with a breakpoint set it does not stop.
> > Is there a way to turn "Debug" back on?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
netvmini.sys still not working on Windows 7 even after driver signing disabled ?! (Windows debug mode necessary for debug drivers ???) Skybuck Flying Windows XP Drivers 3 9th Aug 2009 06:54 AM
debug is not working WebBuilder451 Microsoft ASP .NET 3 17th Dec 2007 01:16 PM
debug/release exe is not working... =?Utf-8?B?QWxleA==?= Microsoft VC .NET 4 10th Sep 2007 08:16 AM
HttpWebRequest Post with ClientCertificates working in Debug and VS, but not working in IIS calebmeii@gmail.com Microsoft ASP .NET 0 29th Jun 2007 05:55 PM
Debug go not working George CK Microsoft Dot NET 0 9th Sep 2003 04:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:41 PM.