Serial Debug Issue Arduino Mega and Dynamixel Shield

Can you share your code and a screenshot of the actual Serial Monitor window?

Using the Serial Monitor with UNO Mega is complex. Have read this web instruction yet?

If you can afford it I would suggest that you upgrade to UNO R4 which has two hardware serial ports so none of the craziness of flipping a switch to download or use the sketch.

Please see this post