Database script on local replica not running in debug

I am trying to debug and modify a database script with a local replica.

When I open the same database on a server replica, the database script immediately opens in the debugger. When I open a local replica of the database, it opens immediately and I cannot debug the database script.

Does this mean the db script is not running at all on local replicas? I tried inserting a "Stop’ command, and again, it works on the server replica, but not on the local replica.

Does anyone have any information on this or suggestions on what I need to do to ensure the database script runs with a local replica?

Best regards,

Gail Spurlock