In this post I will discuss the basics of developing, debugging and testing PI Function Libraries using Netweaver Developer Studio. This includes creating the function in PI, exporting the code, importing the code into NWDS, creating a test class and implementations of supporting classes, and executing\debugging the code locally.