debugging with browserify: calling functions and vars in console

Is it possible to call functions while running node modules using browserify? When I try calling functions or vars in the browser console it throws an Uncaught ReferenceError error. However, when I run the code without the node modules my calls are executed.