I need to use 2 pins as digital inputs on Pixhawk. For testing it, is there a screen on Mission Planner where I can observe the status of digital inputs?
no there is not,
a lot of people use the rangefinder library to provide custom status though.
ie voltage to a pin = x distance. if that x distance happened to be configured to the value 1. the so be it.